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