M
M
Mark Kochetkov2021-03-27 11:25:41
Unity
Mark Kochetkov, 2021-03-27 11:25:41

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

1 answer(s)
B
Bogdan Erolskiy, 2021-03-27
@Mrak00nea00

Read the documentation for the GameObject.
There are 2 properties: GameObject.activeSelfand 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 question

Ask a Question

731 491 924 answers to any question