ExitingEditMode
Occurs when exiting edit mode, before the Editor is in play mode.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Field
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
ExitingEditMode = 1
Remarks
In this condition, EditorApplication.isPlaying is and EditorApplication.isPlayingOrWillChangePlaymode is .
falsetrueFor new code, use OnExitingEditModeAttribute instead to avoid unnecessary event subscription handling. For more information, refer to Code reload and the code lifecycle in the manual.