how to check if object is active in unity scripy code example
Example: check if gameobject is active
if (gameObject.activeSelf)
{
// this happens when object is active
}
if (gameObject.activeSelf)
{
// this happens when object is active
}