Occurs during the next update of the Editor application if it is in edit mode and was previously in play mode.
In this condition both EditorApplication.isPlaying and EditorApplication.isPlayingOrWillChangePlaymode are false.
For new code, use OnEnteringEditModeAttribute instead to avoid unnecessary event subscription handling. For more information, refer to Code reload and the code lifecycle in the manual.