isFocused
Whether the Player currently has focus (Read Only).
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool isFocused { get; }
Remarks
In the Editor, this corresponds to whether the Game view has focus (regardless of whether the Editor is in Play mode or not).
Additional Resources: MonoBehaviour.OnApplicationFocus(bool).