Navigation
API > API/Editor > API/Editor/UnrealEd
Interface for objects who want to lock the viewport to an actor.
| Name | FLevelViewportActorLock |
| Type | struct |
| Header File | /Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h |
| Include Path | #include "LevelEditorViewport.h" |
Syntax
struct FLevelViewportActorLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates a new instance of FLevelViewportActorLock. | LevelEditorViewport.h | ||
FLevelViewportActorLock
(
AActor* InActor |
Creates a new instance of FLevelViewportActorLock. | LevelEditorViewport.h | |
FLevelViewportActorLock
(
AActor* InActor, |
Creates a new instance of FLevelViewportActorLock. | LevelEditorViewport.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| None | const FLevelViewportActorLock | Represents no lock. | LevelEditorViewport.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AspectRatioAxisConstraint | TOptional< EAspectRatioAxisConstraint > | An optional aspect ratio axis constraint to use when resizing the viewport. | LevelEditorViewport.h | |
| LockedActor | TWeakObjectPtr< AActor > | The actor the viewport should be locked to. | LevelEditorViewport.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AActor * GetLockedActor() |
Gets the locked actor. | LevelEditorViewport.h | |
bool HasValidLockedActor() |
Returns whether the locked actor is valid. | LevelEditorViewport.h |