KellanHiggins / AsciiFBXExporterForUnity

A tool to export any Unity GameObject into a FBX ASCII format
Other
806 stars 165 forks source link

Added support to save textures at run time #46

Closed Harti177 closed 2 years ago

KellanHiggins commented 3 years ago

Thanks so much @Harti177. Can you give me a rundown of how you implemented this? Doesn't have to be long, just want to understand roughly how you did it so I can test before merging.

Harti177 commented 3 years ago

I just use the EncodeToPng to convert the texture to bytes and save the bytes to a file in the same folder at runtime.

I decompress the texture using [https://stackoverflow.com/a/51317663]