EditorApplication.isPlaying Manual     Reference     Scripting  
Scripting > Editor Classes > EditorApplication
EditorApplication.isPlaying

static var isPlaying : bool

Description

Is editor currently in play mode?

Setting isPlaying delays the result until after all script code has completed for this frame.

See Also: isPaused, isPlayingOrWillChangePlaymode.