Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UUnrealEditorSubsystem
Description
Gets information about the camera position for the primary level editor viewport. In non-editor builds, these will be zeroed In the UnrealEd module instead of Level Editor as it uses FLevelEditorViewportClient which is in this module
| Name | GetLevelViewportCameraInfo |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/UnrealEditorSubsystem.h |
| Include Path | #include "Subsystems/UnrealEditorSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/UnrealEditorSubsystem.cpp |
UFUNCTION (BlueprintPure, Category="Development|Editor")
bool GetLevelViewportCameraInfo
(
FVector & CameraLocation,
FRotator & CameraRotation
)
Whether or not we were able to get a camera for a level editing viewport
Parameters
| Name | Remarks |
|---|---|
| CameraLocation | (out) Current location of the level editing viewport camera, or zero if none found |
| CameraRotation | (out) Current rotation of the level editing viewport camera, or zero if none found |