GameObject:activeInHierarchy、activeSelf Behaviour:enabled

GameObject:
activeInHierarchy 定义 GameObject 在 Scene 中是否处于活动状态,会影响所有子级的activeInHierarchy
activeSelf 这是使用 GameObject.SetActive 设置的,当父级在Scene处于活动状态不会影响此值

Behaviour:
enabled 相当于Inspector中脚本的小复选框,禁用的 Behaviour 不可更新(FixedUpdate、Update、LateUpdate、OnGUI、OnRenderObject)

activeInHierarchy 、activeSelf 、enabled 任意一项为false时都不可更新(FixedUpdate、Update、LateUpdate、OnGUI、OnRenderObject)

原文地址:https://www.cnblogs.com/kingBook/p/11057879.html