ToggleVisibility(GameObject, bool)
Toggles the visible state of a GameObject.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public void ToggleVisibility(GameObject gameObject, bool includeDescendants)
Parameters
GameObject on which to toggle visibility.
Whether to include descendants.
Remarks
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.