EditorApplication.isPlayingOrWillChangePlaymode 是否正播放或将切换播放模式


static var isPlayingOrWillChangePlaymode : 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).

当编辑器完成了某些任务将要返回播放模式时返回true。

参见:isPlaying, isCompiling.


,