Unity Scripting Order Reference
Interactive MonoBehaviour lifecycle diagram. Click any callback to see its description and code example.
Understanding when each Unity callback runs is critical for avoiding bugs. Should you initialise references in Awake or Start? Where does camera follow code go? When do physics callbacks fire relative to Update? This interactive diagram shows the complete MonoBehaviour lifecycle with code examples for each event.
Lifecycle Flowchart
Click any phase for code examples.
Execution Order
When Does X Run?
Related Unity errors
- NullReferenceExceptionWhy Unity throws NullReferenceException, how to read the stack trace to find the exact line, and the five causes that account for nearly all of them.
- Coroutine couldn't be startedWhy Unity refuses to start a coroutine on an inactive GameObject, including the case where the object looks active, and what to use instead.
- MissingReferenceExceptionWhy Unity says an object has been destroyed but you are still accessing it, how destroyed objects differ from null, and the four causes worth checking.
Related Tools
DOTween Reference
Searchable DOTween cheat sheet with copy-paste Unity C# code for every common tween method.
Easing Visualiser
Interactive curves with Unity code output. DOTween, LeanTween, and AnimationCurve snippets for every standard easing function.
Game Maths
Interactive cheat sheet with live visualisations. Distance, lerp, dot product, vectors, and more with Unity C# code.
Unity Error Decoder
Paste a Unity error or stack trace and get the page that explains it. Ranked causes and fixes, one page per error message.
Frequently asked questions
When does Awake run vs Start in Unity?
In what order do Awake calls run across multiple scripts?
When does FixedUpdate run compared to Update?
When does OnEnable run?
Last updated: