# mousePosition

> The mouse position expressed in the global coordinate system if the event that triggered the dropdown menu to display was a mouse event.

## Definition

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

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

### Remarks

If the event that triggered the dropdown menu to display was not a mouse event, this property is zero.
