Answer the question
In order to leave comments, you need to log in
How to check if an object is active in Unity?
How to check if an object is active in Unity?
Answer the question
In order to leave comments, you need to log in
Read the documentation for the GameObject.
There are 2 properties: GameObject.activeSelf
and GameObject.activeInHierarchy
. The first checks the activity of the object separately, the second - in the hierarchy.
For the future - such a question is easily googled, try to find answers to simple questions on your own.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question