MonoBehaviour Lifecycle

MonoBehaviour is the base class that lets Unity call your code at the right moments: when an object wakes up, every frame, at every physics step, and when it is destroyed. Knowing the order of those calls, and which one to use for what, prevents a whole family of bugs where things run too early, too often, or not at all.

More in Unity Fundamentals

  1. Editor & Workflow
  2. Prefabs
  3. GameObjects, Components & Transform
  4. MonoBehaviour Lifecycle
  5. Serialization & the Inspector
  6. Coroutines
  7. ScriptableObjects

All 42 topics in the Learn Unity Roadmap