Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayModeStateChange.EnteredPlayMode

Description

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

In this condition both EditorApplication.isPlaying and EditorApplication.isPlayingOrWillChangePlaymode 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.

Did you find this page useful? Please give it a rating: