how to check if an object is disabled in unity code example
Example 1: how to check if an object is active in unity
if (myGameObject.activeSelf)
Example 2: check if enabled unity
if (gameObject.activeSelf )
{
print("It is Activated.")
}
if (myGameObject.activeSelf)
if (gameObject.activeSelf )
{
print("It is Activated.")
}