Answers for "There is no 'Material' attached to the ui unity"

0

There is no 'Material' attached to the ui unity

Aha! So the material is never actually a component of an object. Its an extension of the renderer component.
Got it, thanks!

GameObject go_child = go.transform.FindChild("dummyspown").gameObject;
go_child.GetComponent<Renderer>().material.SetColor("_Color", Color.red);
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language