# EnteredPlayMode

> Occurs during the next update of the Editor application if it is in play mode and was previously in edit mode.

## Definition

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

```csharp
EnteredPlayMode = 2
```

### Remarks

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

Because this event is synchronized with the editor application's update loop, it may occur after the game's update loop has already executed one or more times.
