Occurs when exiting edit mode, before the Editor is in play mode.
In this condition, EditorApplication.isPlaying is false and EditorApplication.isPlayingOrWillChangePlaymode is true.
For 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.