unity how to get if a obj is active code example Example: how to check if an object is active in unity if (myGameObject.activeSelf)