Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

EditorApplication.isPlayingOrWillChangePlaymode

static var isPlayingOrWillChangePlaymode: bool;
static bool isPlayingOrWillChangePlaymode;
static isPlayingOrWillChangePlaymode as bool

Description

Is editor either currently in play mode, or about to switch to it? (Read Only)

This will return true when editor will switch to play mode after finishing some tasks (e.g. after scripts will be recompiled).

See Also: isPlaying, isCompiling.