Question by
beatdesign · Nov 12, 2015 at 01:22 AM ·
texture2druntimereadpixelsgetpixelsreadable
Change Texture2D readable flag at runtime (or at least a workaround to do that)
Hi to all, I'm getting a photo from iOS or Android Camera as a Texture2D image. I'd like to modify it (crop / merge with another texture) and then save it into the gallery. To do so, I need to convert the Texture2D into a readable Texture2D. I need to do it at runtime, so:
I can't use "read/write" flag into the "Advanced" panel
I can't use TextureImporter or AssetDatabase
From what @jonas echterhoff said here, it seems to be impossible to change the readable flag at runtime. So... I think there must be a workaround for this, since I can't believe I'm the first one to have the same issue at runtime: I'm sure it would be a good answer for a lot of people.
Anyone can help me with this please? Thank you!
Comment