FLevelViewportActorLock

Interface for objects who want to lock the viewport to an actor.

Choose your operating system:

Windows

macOS

Linux

References

Module

UnrealEd

Header

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

Include

#include "LevelEditorViewport.h"

Syntax

struct FLevelViewportActorLock

Remarks

Interface for objects who want to lock the viewport to an actor.

Variables

Name Description

Public variable

TOptional< EAsp...

 

AspectRatioAxisConstraint

An optional aspect ratio axis constraint to use when resizing the viewport.

Public variable

TWeakObjectPtr<...

 

LockedActor

The actor the viewport should be locked to.

Constructors

Name Description

Public function

FLevelViewportActorLock()

Creates a new instance of FLevelViewportActorLock.

Public function

FLevelViewportActorLock

(
    AActor* InActor
)

Creates a new instance of FLevelViewportActorLock.

Public function

FLevelViewportActorLock

(
    AActor* InActor,
    TOptional< EAspectRatioAxisConstrai...
)

Creates a new instance of FLevelViewportActorLock.

Functions

Name Description

Public function Const

AActor *

 

GetLockedActor()

Gets the locked actor.

Public function Const

bool

 

HasValidLockedActor()

Returns whether the locked actor is valid.

Constants

Name

Description

None

Represents no lock.