ドキュメント

Unity Engine

Unity Engine

IsHidden

Checks the hidden state of a GameObject and, optionally, its descendants.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

IsHidden(GameObject, bool)

Checks the hidden state of a GameObject and, optionally, its descendants.
public bool IsHidden(GameObject gameObject, bool includeDescendants = false)

Parameters

gameObject

GameObject to check.

includeDescendants

Specify true to check the GameObject and all its descendants. Set to false to check the GameObject.

Returns

Type

Description

boolWhen includeDescendants is true, this method returns true when the GameObject and all its descendants are hidden. When includeDescendants is false, this method returns true when the GameObject is hidden.

Remarks

When includeDescendants is true, this method returns true when the GameObject and all its descendants are hidden. When includeDescendants is false, this method returns true when the GameObject is hidden.

IsHidden(Scene)

Checks the hidden state of a GameObject and, optionally, its descendants.
public bool IsHidden(Scene scene)

Parameters

scene

Returns

Type

Description

boolWhen includeDescendants is true, this method returns true when the GameObject and all its descendants are hidden. When includeDescendants is false, this method returns true when the GameObject is hidden.

Remarks

When includeDescendants is true, this method returns true when the GameObject and all its descendants are hidden. When includeDescendants is false, this method returns true when the GameObject is hidden.