Skip to main content
1 of 5
Jonathan Connell
  • 2.8k
  • 1
  • 22
  • 28

From Unity Reference :

// This will return the game object named Hand in the scene.
hand = GameObject.Find("Hand");

You must remember that when trying to access objects via script, any inactive GameObjects are not included in the search.

Jonathan Connell
  • 2.8k
  • 1
  • 22
  • 28