check if gameobject text is active unity 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
}