Unity Engine documentationScript ReferenceUnityEditorEditorWindowhasFocusReturns true if EditorWindow is focused.Read time 1 minuteLast updated 6 days agoDefinition Type: Property Namespace: UnityEditor Assembly: UnityEditor public bool hasFocus { get; }