Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Using GetComponent to modify components of a GO
- GameObject blah = GameObject.Find("Player");
- blah.GetComponent<Renderer>().material.color = Color.red;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement