# ExitingEditMode

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

## Definition

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

```csharp
ExitingEditMode = 1
```

### Remarks

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