Quantcast
Channel: Questions in topic: "readable"
Viewing all articles
Browse latest Browse all 62

Change Texture2D readable flag at runtime (or at least a workaround to do that)

$
0
0
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][1], 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! [1]: http://forum.unity3d.com/threads/setting-readable-flag-on-textures-loaded-at-runtime.34321/#post-223598

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>