ドキュメント

Unity Engine

Unity Engine

activeSelf

The local active state of the GameObject. True if active, false if inactive. (Read Only)
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool activeSelf { get; }

Remarks

The local active state of this GameObject, which is set using GameObject.SetActive. A locally active GameObject may still be inactive in the scene hierarchy because a parent is not active. Use GameObject.activeInHierarchy if you want to check if the GameObject is actually treated as active in the Scene.