Version: 2017.1

EditorApplication.isPlayingOrWillChangePlaymode

切换到手册
public static bool isPlayingOrWillChangePlaymode ;

描述

编辑器当前是处于播放模式,还是即将切换到该模式?(只读)

如果编辑器将在完成某些任务后(例如,在重新编译脚本之后)切换到播放模式, 此属性将返回 true。

另请参阅:isPlayingisCompiling