文档

Unity Engine

Unity Engine

Isolate

Isolates a GameObject and its descendants.
阅读时间1 分钟最后更新于 1 个月前

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.