Version: 2021.1
public static bool isFocused ;

描述

播放器当前是否具有焦点?只读。

在编辑器中,这对应于游戏视图是否具有焦点(无论编辑器是否处于游戏模式)。

另请参阅:MonoBehaviour.OnApplicationFocus