Absolute to Viewport

Absolute to Viewport

Windows
MacOS
Linux

Translates absolute coordinate in desktop space of the geometry provided into local viewport coordinates.

Target is Slate Blueprint Library

Absolute to Viewport
Absolute Desktop Coordinate
X0.0
Y0.0
Pixel Position
X0.0
Y0.0
Viewport Position
X0.0
Y0.0

Inputs

Absolute Desktop Coordinate
Vector 2D Structure

Outputs

Pixel Position
Vector 2D Structure

The position in the game's viewport, usable for line traces and other uses where you need a coordinate in the space of viewport resolution units.

Viewport Position
Vector 2D Structure

The position in the space of other widgets in the viewport. Like if you wanted to add another widget to the viewport at the same position in viewport space as this location, this is what you would use.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss