Version: 2019.4
public void ToggleVisibility (GameObject gameObject, bool includeDescendants);

パラメーター

gameObjectGameObject on which to toggle visibility.
includeDescendantsWhether to include descendants.

説明

Toggles the visible state of a GameObject.

When includeDescendants is true, a descendant is set to the same visible state as the parent GameObject. When includeDescendants is false, the visibility state of descendants are not affected.