お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeゲームオブジェクトのローカルのアクティブ状態 (Read Only)
ゲームオブジェクトのローカルのアクティブ状態は、GameObject.SetActiveを使用して設定された値を返します。 これがtrueを帰す場合、親のゲームオブジェクトが非アクティブでもアクティブでも問題ありません。 これは、一旦すべての親がアクティブ状態だとして判断されます。 ゲームオブジェクトが実際にシーン上でどう扱われるか確認したい場合はGameObject.activeInHierarchy を使用してください。 See Also: GameObject.SetActive, GameObject.activeInHierarchy.