Language:
Discover
By Skill Level
By Category

FViewportCameraTransform

Choose your OS:

Syntax

struct FViewportCameraTransform

Remarks

Stores the transformation data for the viewport camera

Constructors

Name Description

Public function

FViewportCameraTransform()

Functions

Name Description

Public function

FMatrix

 

ComputeOrbitMatrix()

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

Public function

const FVecto ...

 

GetLocation()

The transform's location

Public function

const FVecto ...

 

GetLookAt()

The look at point for orbiting

Public function

float

 

GetOrthoZoom()

The ortho zoom amount

Public function

const FRotat ...

 

GetRotation()

The transform's rotation

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

true if there is currently a transition

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/EditorViewportClient.h