Unity脚本中有很多的事件函数,下面是各种函数的执行顺序:

1.reset();

 

2.Awake();

3.OnEnable;

4.OnLevelWasLoaded();

 

5.Start();

 

6.OnApplicationPause();

 

7.FixedUpdate();

8.Update();

9.LateUpdate();

 

10.Rendering(渲染)类

 

11.Coroutines(协调程序)类

 

12.OnDestroy();

 

13.OnApplicationQuit();

14.OnDisable();

 

下图是Unity社区官方给的循环周期流程图:

Tip8:Unity中诸如 Awake() Start() Update()等函数的 执行顺序

 

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-07-05
  • 2021-12-30
  • 2021-04-03
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-05-04
  • 2021-11-15
  • 2021-04-28
  • 2022-12-23
相关资源
相似解决方案