unity find active gameobjects code example Example: unity check gameobject active if (gameObject.activeInHierarchy)