Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Code and scene reload on entering Play mode

Understand what Unity reloads by default on entering Play mode and how you can configure this behavior for faster development iteration times.
Read time 1 minuteLast updated 11 days ago

Authoring your application in Edit mode and then switching to Play mode to preview its runtime behavior is a core feature of iterative development in the Unity Editor. By default the Editor reloads the scene as part of the transition from Edit mode to Play mode. The Editor doesn't reload code by default on entering Play mode, but you can configure it to do so. It's important to understand what Unity reloads, why and when it does so, and how you can configure the reloading behavior. This helps you make informed trade-offs between development iteration time and the degree to which Play mode accurately reflects your built application's performance.

Topic

Description

Configuring how Unity enters Play modeConfigure the Unity Editor to enter Play mode more quickly and improve your development iteration times.
Enter Play mode without domain reloadUnderstand how Unity's default behavior of entering Play mode without domain reload affects your application state and how you can compensate for these effects in your code.
Enter Play mode without scene reloadUnderstand how entering Play mode without scene reload affects your application and how you can compensate for these effects in your code.
Domain and scene reload execution order referenceUnderstand the work Unity performs during domain and scene reload and what's skipped when they're turned off.

Additional resources