Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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.
-
I resolved it by adding a sprite rather than a texture (and the texture to an Atlas), but my question still remains :)
-
You need to use an Unlit shader.
-
thanks, I'll try :)
-
myUITexture.material = new Material(Shader.Find("Unlit/Transparent Colored"));