Advertisement
Guest User

Untitled

a guest
May 1st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. //Using GetComponent to modify components of a GO
  2.  
  3. GameObject blah = GameObject.Find("Player");
  4.  
  5. blah.GetComponent<Renderer>().material.color = Color.red;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement