# Hide

> Hides a GameObject, or an Array of GameObjects, and their descendants.

## Definition

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

## Hide(GameObject, bool)

Hides a GameObject, or an Array of GameObjects, and their descendants.

```csharp
public void Hide(GameObject gameObject, bool includeDescendants)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): GameObject to hide.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to also hide descendants.

## Hide(Scene)

Hides all GameObjects in a scene.

```csharp
public void Hide(Scene scene)
```

### Parameters

**** (\[Scene]\(/engine/6000.7/script-reference/unityengine/scenemanagement/scene)): Scene containing GameObjects to hide.

## Hide(GameObject\[], bool)

Hides a GameObject, or an Array of GameObjects, and their descendants.

```csharp
public void Hide(GameObject[] gameObjects, bool includeDescendants)
```

### Parameters

**** (\[GameObject\[]]\(/engine/6000.7/script-reference/unityengine/gameobject)): Array of GameObjects to hide.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to also hide descendants.
