Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: cayou on May 07, 2012, 09:17:53 AM

Title: [Simple Texture] Displayed black when running on iPad
Post by: cayou on May 07, 2012, 09:17:53 AM
Hi everybody,
I'm trying to add a simple texture to my GUI, so I added a "simple texture" to my panel, then I created a new material, transparent diffuse, with the texture I want to display.
This texture appears in my scene/game view, even when I launch it, but when I compile to test it on my iPad3 everything is displaying well except the texture, which is black.
It's strange because I see a "shadow" version of the texture, like the texture without light (full black).
I tried to change the shader of the material, by adding a self illuminated, or simply diffuse, without any success.
Any help?

Thanks.
Title: Re: [Simple Texture] Displayed black when running on iPad
Post by: cayou on May 07, 2012, 09:24:42 AM
I resolved it by adding a sprite rather than a texture (and the texture to an Atlas), but my question still remains :)
Title: Re: [Simple Texture] Displayed black when running on iPad
Post by: ArenMook on May 07, 2012, 10:49:38 AM
You need to use an Unlit shader.
Title: Re: [Simple Texture] Displayed black when running on iPad
Post by: cayou on May 07, 2012, 12:01:03 PM
thanks, I'll try :)
Title: Re: [Simple Texture] Displayed black when running on iPad
Post by: Nicki on May 07, 2012, 02:30:42 PM
myUITexture.material = new Material(Shader.Find("Unlit/Transparent Colored"));