![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 FVector & | GetLocation () const |
| const FRotator & | GetRotation () const |
| const FVector & | GetLookAt () const |
| float | GetOrthoZoom () const |
| UMG_API void | TransitionToLocation (const FVector &InDesiredLocation, bool bInstant) |
| UMG_API bool | UpdateTransition () |
| UMG_API FMatrix | ComputeOrbitMatrix () const |
Stores the transformation data for the viewport camera
| FUMGViewportCameraTransform::FUMGViewportCameraTransform | ( | ) |
| FMatrix FUMGViewportCameraTransform::ComputeOrbitMatrix | ( | ) | const |
Computes a matrix to use for viewport location and rotation when orbiting
|
inline |
|
inline |
|
inline |
|
inline |
Sets the transform's location
Sets the location to look at during orbit
Set the ortho zoom amount
Sets the transform's rotation
| void FUMGViewportCameraTransform::TransitionToLocation | ( | const FVector & | InDesiredLocation, |
| bool | bInstant | ||
| ) |
Animates from the current location to the desired location
| InDesiredLocation | The location to transition to |
| bInstant | If the desired location should be set instantly rather than transitioned to over time |
| bool FUMGViewportCameraTransform::UpdateTransition | ( | ) |
Updates any current location transitions