- Home /
PackTexture doesn't work in flash platform?
I'm trying to port my project to flash. And I get an error "Texture atlas needs textures to have Readable flag set!" from this line of code.
rectUV = texture.PackTextures(inputTexture, padding, 1024, true);
This works perfectly fine in PC and iOS. I've already set read/write enable of every textures in inspector. Is this a bug or not?
I got the extact same problem here....still looking for solution too.
Answer by Luckymouse · May 26, 2012 at 09:48 PM
Finally I figured it out how to make runtime PackTexture works in Flash:
The Unity default Texture Format of Flash is either RGB or RGBA JPG Compressed, I override for FlashPlayer for the Texture Format to RGB 24 or 32bit, then it has no problem in Flash.
Your answer
Follow this Question
Related Questions
Unity 3.5 with AS3 1 Answer
WWW Flash player with Unity 3.5 1 Answer
Dynamic Font Flash player 2 Answers
the Audio with Flash Build 1 Answer
Flash export fails during export with no explanation 3 Answers