jjzjj

isActiveAndEnabled

全部标签

c# - Unity中启用、isActiveAndEnabled和activeInHierarchy的区别

我不敢相信这个问题还没有在某处被问过;相当彻底的谷歌搜索没有结果。Unity文档说明了有关Behaviour.isActiveAndEnabled的内容。field:HastheBehaviourhadenabledcalled.Truewhilethebehaviourisenabled,falsewhendisabled.它说的是关于Behaviour.enabled:EnabledBehavioursareUpdated,disabledBehavioursarenot.Thisisshownasthesmallcheckboxintheinspectorofthebehavio