Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Isolate

Isolates a GameObject and its descendants.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

Isolate(GameObject, bool)

Isolates a GameObject and its descendants.
public void Isolate(GameObject gameObject, bool includeDescendants)

Parameters

gameObject

GameObject to isolate.

includeDescendants

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.
public void Isolate(GameObject[] gameObjects, bool includeDescendants)

Parameters

gameObjects

Array of GameObjects to isolate.

includeDescendants

Whether to include descendants.

Remarks

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