Get Level Viewport Camera Info

Get Level Viewport Camera Info

Windows
MacOS
Linux

Gets information about the camera position for the primary level editor viewport. In non-editor builds, these will be zeroed

Target is Editor Level Library

Get Level Viewport Camera Info
Camera Location
X0
Y 0
Z 0
Camera Rotation
R 0
P 0
Y0
Return Value

Inputs

Outputs

Camera Location
Vector

(out) Current location of the level editing viewport camera, or zero if none found

Camera Rotation
Rotator

(out) Current rotation of the level editing viewport camera, or zero if none found

Return Value
Boolean

Whether or not we were able to get a camera for a level editing viewport

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