Unity3D脚本中Start和Awake的区别
展开全部
Awake() 和 Start() 的区别:
The difference between Awake and Start is that Awake is run when a scene is loaded and Start is called just before the first call to an Update or a FixedUpdate function. All Awake functions are called before any Start functions are called.
Awake() 在场景加载时调用
Start() 在第一个 Update() / FixedUpdate() 之前调用
所有的 Awake() 都在 Start() 之前调用
The difference between Awake and Start is that Awake is run when a scene is loaded and Start is called just before the first call to an Update or a FixedUpdate function. All Awake functions are called before any Start functions are called.
Awake() 在场景加载时调用
Start() 在第一个 Update() / FixedUpdate() 之前调用
所有的 Awake() 都在 Start() 之前调用
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询