Answers for "unity check if object is not active"

C#
2

unity check if object is not active

// Check if gameobject is active or false
if (gameObject.activeSelf == true)
{
    Debug.Log("Is active");
}
else if (gameObject.activeSelf == false)
{
    Debug.Log("Not active");
}
Posted by: Guest on June-12-2021
3

how to check if an object is active in unity

if (myGameObject.activeSelf)
Posted by: Guest on August-17-2020

Code answers related to "unity check if object is not active"

C# Answers by Framework

Browse Popular Code Answers by Language