Unity Command Execution Order
Hello friends, in this post I will talk about which priority the built-in functions in Unity run with. In other words, we will discuss the lifecycle of commands in Unity.
The general execution order is as follows.
- Awake
- OnEnable
- Reset
- Start
- FixedUpdate
- OnTrigger
- OnCollision
- yield WaitForFixedUpdate
- OnMouse
- Update
- yield null
- yieldWaitForSeconds
- yield WWW
- yield StartCoroutine
- Late Update
- OnGUI
- yield WaitForEndOfFrame
- OnApplicationPause
- OnApplicationQuit
- OnDisable
- OnDestroy
The functions run from top to bottom in the order they are written, and you can also examine the execution priorities of all functions in the image below.
In addition, you can examine these in more detail on the Unity Documentation page outside of the image.


Yorum Gönder