Buttons can't display compressed textures

  1. What happened

The web player fails to show button textures. Images display in the buttons until the web player build compresses the textures and then they no longer display on the buttons.

  1. How can we reproduce it using the example you attached.

Open the attached scene. Potentially reimport the texture to decompress. Launch in the editor. The textures display on the buttons. Then build the web player which compresses the texture and the button textures will appear blank.

I guess the work around will be to not compress the textures (in the import settings) so they can appear on GUI elements.

124112–4649–$buttontextures001_817.zip (483 KB)

Is there a way to convert a compressed texture to an uncompressed texture in the web player? Without using the editor?

I guess you could access the pixel array of the texture and copy it into a new uncompressed texture.

Actually, you can’t read compressed textures.

–Eric

Well that’s a bummer, I figured that once it was a Texture you could read it out. Scratch that idea.

Hack-o-rama work-around: display compressed texture on screen for one frame, use ReadPixels to convert to uncompressed texture.

–Eric