Unity Engine documentationScript ReferenceUnityEditorEditorWindowhasFocusReturns true if EditorWindow is focused.阅读时间1 分钟最后更新于 1 个月前Definition Type: Property Namespace: UnityEditor Assembly: UnityEditor public bool hasFocus { get; }