Answers for "unity check gameobject active"

C#
14

check if gameobject is active

if (gameObject.activeSelf)
{
	// this happens when object is active
}
Posted by: Guest on July-17-2020
7

unity check if gameobject is active

// To check if a GameObject is active:
gameObject.activeSelf;
Posted by: Guest on March-08-2020
3

how to check if an object is active in unity

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

unity check gameobject active

if (gameObject.activeInHierarchy)
Posted by: Guest on May-29-2021

C# Answers by Framework

Browse Popular Code Answers by Language