# AreAllDescendantsHidden

> Checks whether root GameObjects, and all their descendants, are hidden in a Scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## AreAllDescendantsHidden(Scene)

Checks whether root GameObjects, and all their descendants, are hidden in a Scene.

```csharp
public bool AreAllDescendantsHidden(Scene scene)
```

### Parameters

**** (\[Scene]\(/engine/6000.3/script-reference/unityengine/scenemanagement/scene)): Scene to check.

### Returns

| Type                                                          | Description                                                                             |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public bool AreAllDescendantsHidden(GameObject gameObject)
```

### Parameters

**** (\[GameObject]\(/engine/6000.3/script-reference/unityengine/gameobject)): GameObject to check.

### Returns

| Type                                                          | Description                                 |
| ------------------------------------------------------------- | ------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all descendants are hidden. |
