Navigation
API > API/Editor > API/Editor/UnrealEd
Stores the transformation data for the viewport camera
| Name | FViewportCameraTransform |
| Type | struct |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h |
| Include Path | #include "EditorViewportClient.h" |
Syntax
struct FViewportCameraTransform
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FViewportCameraTransform() |
EditorViewportClient.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DesiredLocation | FVector | Desired viewport location when animating between two locations | EditorViewportClient.h | |
| LookAt | FVector | When orbiting, the point we are looking at | EditorViewportClient.h | |
| MaxLocation | double | Location is clamped to a box around the origin with this radius | EditorViewportClient.h | |
| OrthoZoom | float | Ortho zoom amount | EditorViewportClient.h | |
| StartLocation | FVector | Viewport start location when animating to another location | EditorViewportClient.h | |
| TransitionCurve | TSharedPtr< struct FCurveSequence > | The time when a transition to the desired location began Curve for animating between locations | EditorViewportClient.h | |
| ViewLocation | FVector | Current viewport Position. | EditorViewportClient.h | |
| ViewRotation | FRotator | Current Viewport orientation; valid only for perspective projections. | EditorViewportClient.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMatrix ComputeOrbitMatrix() |
Computes a matrix to use for viewport location and rotation when orbiting | EditorViewportClient.h | |
const FVector & GetLocation() |
EditorViewportClient.h | ||
const FVector & GetLookAt() |
EditorViewportClient.h | ||
float GetOrthoZoom() |
EditorViewportClient.h | ||
const FRotator & GetRotation() |
EditorViewportClient.h | ||
bool IsPlaying() |
Check if transition curve is playing. | EditorViewportClient.h | |
void SetLocation
(
const FVector& Position |
Sets the transform's location | EditorViewportClient.h | |
void SetLookAt
(
const FVector& InLookAt |
Sets the location to look at during orbit | EditorViewportClient.h | |
void SetMaxLocation
(
double InMaxLocation |
EditorViewportClient.h | ||
void SetOrthoZoom
(
float InOrthoZoom |
Set the ortho zoom amount | EditorViewportClient.h | |
void SetRotation
(
const FRotator& Rotation |
Sets the transform's rotation | EditorViewportClient.h | |
| Animates from the current location to the desired location | EditorViewportClient.h | ||
bool UpdateTransition() |
Updates any current location transitions | EditorViewportClient.h |