Navigation
API > API/Runtime > API/Runtime/UMG
Stores the transformation data for the viewport camera
| Name | FUMGViewportCameraTransform |
| Type | struct |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Viewport.h |
| Include Path | #include "Components/Viewport.h" |
Syntax
struct FUMGViewportCameraTransform
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUMGViewportCameraTransform() |
Components/Viewport.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DesiredLocation | FVector | Desired viewport location when animating between two locations | Components/Viewport.h | |
| LookAt | FVector | When orbiting, the point we are looking at | Components/Viewport.h | |
| OrthoZoom | float | Ortho zoom amount | Components/Viewport.h | |
| StartLocation | FVector | Viewport start location when animating to another location | Components/Viewport.h | |
| TransitionStartTime | double | The time when a transition to the desired location began | Components/Viewport.h | |
| ViewLocation | FVector | Current viewport Position. | Components/Viewport.h | |
| ViewRotation | FRotator | Current Viewport orientation; valid only for perspective projections. | Components/Viewport.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMatrix ComputeOrbitMatrix() |
Computes a matrix to use for viewport location and rotation when orbiting | Components/Viewport.h | |
const FVector & GetLocation() |
Components/Viewport.h | ||
const FVector & GetLookAt() |
Components/Viewport.h | ||
float GetOrthoZoom() |
Components/Viewport.h | ||
const FRotator & GetRotation() |
Components/Viewport.h | ||
void SetLocation
(
const FVector& Position |
Sets the transform's location | Components/Viewport.h | |
void SetLookAt
(
const FVector& InLookAt |
Sets the location to look at during orbit | Components/Viewport.h | |
void SetOrthoZoom
(
float InOrthoZoom |
Set the ortho zoom amount | Components/Viewport.h | |
void SetRotation
(
const FRotator& Rotation |
Sets the transform's rotation | Components/Viewport.h | |
void TransitionToLocation
(
const FVector& InDesiredLocation, |
Animates from the current location to the desired location | Components/Viewport.h | |
bool UpdateTransition() |
Updates any current location transitions | Components/Viewport.h |