FViewportCameraTransform

Stores the transformation data for the viewport camera

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h

Include

#include "EditorViewportClient.h"

Syntax

struct FViewportCameraTransform

Remarks

Stores the transformation data for the viewport camera

Constructors

Name Description

Public function

FViewportCameraTransform()

Functions

Name Description

Public function Const

FMatrix

 

ComputeOrbitMatrix()

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

Public function Const

const FVecto...

 

GetLocation()

Public function Const

const FVecto...

 

GetLookAt()

Public function Const

float

 

GetOrthoZoom()

Public function Const

const FRotat...

 

GetRotation()

Public function

bool

 

IsPlaying()

Check if transition curve is playing.

Public function

void

 

SetLocation

(
    const FVector& Position
)

Sets the transform's location

Public function

void

 

SetLookAt

(
    const FVector& InLookAt
)

Sets the location to look at during orbit

Public function

void

 

SetOrthoZoom

(
    float InOrthoZoom
)

Set the ortho zoom amount

Public function

void

 

SetRotation

(
    const FRotator& Rotation
)

Sets the transform's rotation

Public function

void

 

TransitionToLocation

(
    const FVector& InDesiredLocation,
    TWeakPtr< SWidget > EditorViewportW...,
    bool bInstant
)

Animates from the current location to the desired location

Public function

bool

 

UpdateTransition()

Updates any current location transitions

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback