Answers for "unity image change transparency"

C
2

unity change transparency script

public GameObject gameObject;

//gameObject.GetComponent<Renderer>().material.color = new Color(r, g, b, a);
//gameObject.GetComponent<Renderer>().material.color = new Color(255.0f, 255.0f, 255.0f, 0.0f);
gameObject.GetComponent<Renderer>().material.color = new Color(255.0f, 255.0f, 255.0f, 100.0f);
Posted by: Guest on August-27-2021

Code answers related to "unity image change transparency"

Code answers related to "C"

Browse Popular Code Answers by Language