# PlayModeStateChange

> Enumeration specifying a change in the Editor's play mode state. Additional Resources: PauseState, EditorApplication.playModeStateChanged, EditorApplication.isPlaying.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public enum PlayModeStateChange
```

## Fields

| Value                                                                                                 | Description                                                                                                    |
| ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [EnteredEditMode](/engine/6000.7/script-reference/unityeditor/playmodestatechange/enterededitmode.md) | Occurs during the next update of the Editor application if it is in edit mode and was previously in play mode. |
| [EnteredPlayMode](/engine/6000.7/script-reference/unityeditor/playmodestatechange/enteredplaymode.md) | Occurs during the next update of the Editor application if it is in play mode and was previously in edit mode. |
| [ExitingEditMode](/engine/6000.7/script-reference/unityeditor/playmodestatechange/exitingeditmode.md) | Occurs when exiting edit mode, before the Editor is in play mode.                                              |
| [ExitingPlayMode](/engine/6000.7/script-reference/unityeditor/playmodestatechange/exitingplaymode.md) | Occurs when exiting play mode, before the Editor is in edit mode.                                              |
