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