UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FUMGViewportCameraTransform Struct Reference

#include <Viewport.h>

Public Member Functions

UMG_API FUMGViewportCameraTransform ()
 
UMG_API void SetLocation (const FVector &Position)
 
void SetRotation (const FRotator &Rotation)
 
void SetLookAt (const FVector &InLookAt)
 
void SetOrthoZoom (float InOrthoZoom)
 
const FVectorGetLocation () const
 
const FRotatorGetRotation () const
 
const FVectorGetLookAt () const
 
float GetOrthoZoom () const
 
UMG_API void TransitionToLocation (const FVector &InDesiredLocation, bool bInstant)
 
UMG_API bool UpdateTransition ()
 
UMG_API FMatrix ComputeOrbitMatrix () const
 

Detailed Description

Stores the transformation data for the viewport camera

Constructor & Destructor Documentation

◆ FUMGViewportCameraTransform()

FUMGViewportCameraTransform::FUMGViewportCameraTransform ( )

Member Function Documentation

◆ ComputeOrbitMatrix()

FMatrix FUMGViewportCameraTransform::ComputeOrbitMatrix ( ) const

Computes a matrix to use for viewport location and rotation when orbiting

◆ GetLocation()

const FVector & FUMGViewportCameraTransform::GetLocation ( ) const
inline
Returns
The transform's location

◆ GetLookAt()

const FVector & FUMGViewportCameraTransform::GetLookAt ( ) const
inline
Returns
The look at point for orbiting

◆ GetOrthoZoom()

float FUMGViewportCameraTransform::GetOrthoZoom ( ) const
inline
Returns
The ortho zoom amount

◆ GetRotation()

const FRotator & FUMGViewportCameraTransform::GetRotation ( ) const
inline
Returns
The transform's rotation

◆ SetLocation()

void FUMGViewportCameraTransform::SetLocation ( const FVector Position)

Sets the transform's location

◆ SetLookAt()

void FUMGViewportCameraTransform::SetLookAt ( const FVector InLookAt)
inline

Sets the location to look at during orbit

◆ SetOrthoZoom()

void FUMGViewportCameraTransform::SetOrthoZoom ( float  InOrthoZoom)
inline

Set the ortho zoom amount

◆ SetRotation()

void FUMGViewportCameraTransform::SetRotation ( const FRotator Rotation)
inline

Sets the transform's rotation

◆ TransitionToLocation()

void FUMGViewportCameraTransform::TransitionToLocation ( const FVector InDesiredLocation,
bool  bInstant 
)

Animates from the current location to the desired location

Parameters
InDesiredLocationThe location to transition to
bInstantIf the desired location should be set instantly rather than transitioned to over time

◆ UpdateTransition()

bool FUMGViewportCameraTransform::UpdateTransition ( )

Updates any current location transitions

Returns
true if there is currently a transition

The documentation for this struct was generated from the following files: