# ExitingPlayMode

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

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
ExitingPlayMode = 3
```

### Remarks

In this condition, [EditorApplication.isPlaying](/engine/6000.0/script-reference/unityeditor/editorapplication/isplaying.md) is `true` and [EditorApplication.isPlayingOrWillChangePlaymode](/engine/6000.0/script-reference/unityeditor/editorapplication/isplayingorwillchangeplaymode.md) is `false`.
