Answers for "unity determine if gameobject can be set active"

C#
22

check if gameobject is active

if (gameObject.activeSelf)
{
	// this happens when object is active
}
Posted by: Guest on July-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