# mouseOverWindow

> The EditorWindow currently under the mouse cursor. (Read Only)

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static EditorWindow mouseOverWindow { get; }
```

### Remarks

mouseOverWindow can be null if there is no window under the cursor.

Additional Resources: [EditorWindow.focusedWindow](/engine/6000.0/script-reference/unityeditor/editorwindow/focusedwindow.md).

![UnityEditorMouseOverWindow (mouseOverWindow)](/api/media?file=/engine/6000.0/media/images/UnityEditorMouseOverWindow.png)

*Move the mouse over other Unity windows to automatically focus them.*

### Examples

```csharp
// The window appears in front of the Editor.
// The window shows the type of a Unity object the cursor is over.

using UnityEngine;
using UnityEditor;
using UnityEngine.UIElements;

public class MouseOverWindowExample : EditorWindow
{
    string mouseOver = "Nothing...";
    Label label;

    [MenuItem("Examples/Mouse Over Example")]
    static void Init()
    {
        GetWindow<MouseOverWindowExample>("mouseOver");
    }

    void CreateGUI()
    {
        label = new Label($"Mouse over: {mouseOver}");
        rootVisualElement.Add(label);
    }

    void Update()
    {
        label.schedule.Execute(() =>
        {
            mouseOver = EditorWindow.mouseOverWindow ?
                        EditorWindow.mouseOverWindow.ToString() : "Nothing...";
            label.text = $"Mouse over: {mouseOver}";
        }).Every(10);
    }
}
```
