less than 1 minute read

Disable domain reloading for quicker iteration time during development (if you have to frequently enter and exit play mode). Open Project Settings -> Editor, scroll all the way down, and enable the “Enter Play Mode Options” checkbox while leaving the 2 child checkboxes unchecked. The only thing you have to be aware of is static fields and event handler that won’t get reset. The docs have a helpful section to assist: Domain Reloading.

It won’t be realistic for bigger projects, but still comes in really handy in certain cases, especially when prototyping and for small projects. SceneManager.sceneLoaded event can be enabled by enabling the “Reload Scene” checkbox.

disable-domain-reload

Domain Reload On


Domain Reload Off

Comments