Version: Unity 6.5 Beta (6000.5)
Language : English
Enter Play mode without scene reload
Script serialization

Domain and scene reload execution order reference

From a high-level perspective, entering Play mode consists of the following main stages:

  • Backup current scenes. This only happens when the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
    See in Glossary
    has been modified. Allows Unity to revert the Scenes when exiting Play mode to the state they were in before Play mode started.
  • Domain reload. Resets the scripting state, by reloading the scripting domain.
  • Scene reload. Resets the Scene state, by reloading the Scene.
  • Update scene. This happens twice; once without rendering, and once with rendering.

The combined tasks of domain reload and scene reload resets the scripting domain and simulates the startup behavior of your application as it would run in the Player. Unity skips these steps when you disable them in your Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary
.

The following diagram provides detailed information about the exact steps Unity performs during scene and domain reload, and which steps it skips when they’re turned off. Blue indicates the events Unity skips when domain reload is off, and green indicates the events Unity skips when scene reload is off.

Event functions in the MonoBehaviour script lifecycle. Event functions skipped when domain reload is off are highlighted blue. Event functions skipped when scene reload is off are highlighted green.
Event functions in the MonoBehaviour script lifecycle. Event functions skipped when domain reload is off are highlighted blue. Event functions skipped when scene reload is off are highlighted green.

Additional resources

Enter Play mode without scene reload
Script serialization