# lastMousePosition

> Specifies the mouse position saved during the last mouse event on the target Element.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Vector2 lastMousePosition { get; }
```
