AreAllDescendantsHidden
Checks whether root GameObjects, and all their descendants, are hidden in a Scene.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
AreAllDescendantsHidden(Scene)
Checks whether root GameObjects, and all their descendants, are hidden in a Scene.
public bool AreAllDescendantsHidden(Scene scene)
Parameters
Scene to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all root GameObjects of the Scene and all their descendants are hidden. |
AreAllDescendantsHidden(GameObject)
Checks whether all the descendants of a GameObject are hidden.
public bool AreAllDescendantsHidden(GameObject gameObject)
Parameters
GameObject to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all descendants are hidden. |