Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dendenny01 on June 11, 2015, 11:19:29 PM

Title: Adding a material to NGUI objects
Post by: dendenny01 on June 11, 2015, 11:19:29 PM
How can i add a material to UITexture.
I want to use Mobile Movie Texture.where i need to add a material on which video will be played.But when material is added the texture remain transparent and does not fill with the added material. Material has a shader.
Title: Re: Adding a material to NGUI objects
Post by: ArenMook on June 12, 2015, 08:09:37 AM
In short -- specifying a material is enough. In depth, it's dependent on the shader used by the material. NGUI generates position, UVs for MainTex, and colors. It won't generate normals unless you enable it on the panel. Check the shader you're using in the material -- does it even use MainTex? If it's something like a cube map, it simply won't work.