Local to Viewport

Local to Viewport

Windows
MacOS
Linux

Translates local coordinate of the geometry provided into local viewport coordinates.

Target is Slate Blueprint Library

Local to Viewport
Geometry
Local Coordinate
X0.0
Y0.0
Pixel Position
X0.0
Y0.0
Viewport Position
X0.0
Y0.0

Inputs

Geometry
Geometry Structure (by ref)
Local 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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback