SceneVisibilityManager.Isolate

public void Isolate(GameObject gameObject, bool includeDescendants);

Parameters

gameObject GameObject to isolate.
includeDescendants Whether to include descendants.

Description

Isolates a GameObject and its descendants.

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


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

Parameters

gameObjects Array of GameObjects to isolate.
includeDescendants Whether to include descendants.

Description

Isolates an Array of GameObjects and their descendants.

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

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答