# MouseMove

> Mouse was moved (Editor views only).

## Definition

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

```csharp
MouseMove = 2
```

### Remarks

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

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