I like to use shader for Texture2D .And then i need to use that texture. How can i do it in C#
renderer.material.shader = Shader.Find(“Unlit/Transparent Cutout”);
GUI.Button (new Rect (0,0,Screen.width,Screen.height),images3)
I like to use shader for Texture2D .And then i need to use that texture. How can i do it in C#
renderer.material.shader = Shader.Find(“Unlit/Transparent Cutout”);
GUI.Button (new Rect (0,0,Screen.width,Screen.height),images3)
Not sure what you are trying to do.
Are you trying to use a different shader for the a GUI.Button? If you are it wont work. If you want a button that is transparent in places then just make sure the “image3” has a alpha channel. So use an applicable file format like PNG.