Unity3d 脚本生命周期

生命周期

Posted by SixTeen on July 18, 2016

最近用到的比较重要的有:Awake,OnEnable,Start,FixedUpdate,Update,yield,LateUpdate,OnDisable,OnDestroy

在脚本非激活状态下无法执行协程,在OnDisable,OnDestroy中无法startCoroutine

Execution Order of Event Functions

1
FIN 2016.7.27/23.07