This version of Unity is unsupported.

PlayModeStateChange.ExitingPlayMode

Description

Occurs when exiting play mode, before the Editor is in edit mode.