# MouseMove

> Mouse was moved (Editor views only).

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
MouseMove = 2
```

### Remarks

The mouse was moved without any buttons being held down. Use [Event.mousePosition](/engine/6000.0/script-reference/unityengine/event/mouseposition.md) and [Event.delta](/engine/6000.0/script-reference/unityengine/event/delta.md) to determine mouse motion.

Note that this event is only sent in the Editor for [EditorWindow](/engine/6000.0/script-reference/unityeditor/editorwindow.md) windows which have [EditorWindow.wantsMouseMove](/engine/6000.0/script-reference/unityeditor/editorwindow/wantsmousemove.md) set to true. Mouse move events are never sent in the games.
