Get Mouse Position on Viewport

Get Mouse Position on Viewport

Choose your operating system:

Windows

macOS

Linux

Gets the platform's mouse cursor position in the local space of the viewport widget.

Target is Widget Layout Library

Get Mouse Position on Viewport
Return Value
X0.0
Y0.0

Inputs

In
Exec

Outputs

Out
Exec
Return Value
Vector 2D Structure

Gets the platform's mouse cursor position in the local space of the viewport widget.