unity3d中的脚本生命周期
现在我们写几个常用的
voidAwake(){Custom("Awake");}voidOnEnable(){Custom("OnEnable");}voidStart(){Custom("Start");}voidUpdate(){Custom("Update");}voidLateUpdate(){Custom("LateUpdate");}voidOnGUI(){Custom("OnGUI");}voidOnDestroy(){Custom("OnDestroy");}voidOnDisable(){Custom("OnDisable");}voidCustom(stringfuction){Debug.Log(fuction);}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。