# Isolate

> Isolates a GameObject and its descendants.

## Definition

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

## Isolate(GameObject, bool)

Isolates a GameObject and its descendants.

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

### Parameters

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

### Remarks

If a GameObject is already in Isolation mode when calling this method, the isolated GameObject is hidden.

## Isolate(GameObject\[], bool)

Isolates an Array of GameObjects and their descendants.

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

### Parameters

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

### Remarks

If a GameObject is already in Isolation mode when calling this method, the isolated GameObject is hidden.
