EnterPlayModeOptions
Determines the flags for the Enter Play Mode Options in the Unity Editor.
阅读时间1 分钟最后更新于 4 天前
Definition
- Type: Enum
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
[Flags]public enum EnterPlayModeOptions
Fields
Value | Description |
|---|---|
| DisableDomainReload | When code reload is disabled, scripts are not reloaded when entering Play Mode. This makes it quicker to switch to Play Mode, because there's no need to unload and reload your project's assemblies. |
| DisableSceneReload | When Scene Reload is disabled, Unity resets the Scene state and emulates all of the required post-processor calls when entering Play Mode, instead of reloading the whole Scene. This makes it quicker to switch to Play Mode, because there's no need to destroy, create and awaken all the Scene objects, and serialize and deserialize the Scene from disk. |
| None | This makes Unity reload your project's code and the entire Scene when entering Play Mode. |