We all are aware of that GameObject.Find() doesn’t find inactive gameobjects.
Things that can find inactive gameObjects :
- transform.Find() or transform.FindChild()
- Transform.Find() or Tranform.FindChild()
Finds a child gameobject ,both active and inactive .
If name contains a ‘/’ character it will traverse the hierarchy like a path name.
This also finds inactive gameobjects in child. If you want to include inactive child gameobjects then you must pass true as a parameter.
This will find all the gameobjects with Transform component in child.
This will find all the gameobjects in the current scene , be it active or inactive.