Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.CoreModule

AreAllDescendantsHidden(Scene)

Checks whether root GameObjects, and all their descendants, are hidden in a Scene.
public bool AreAllDescendantsHidden(Scene scene)

Parameters

scene

Scene to check.

Returns

Type

Description

boolReturns 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

GameObject to check.

Returns

Type

Description

boolReturns true if all descendants are hidden.