if object are in active end scene code example Example: how to check if an object is active in unity if (myGameObject.activeSelf)