UEditorEngine::MoveViewportCamerasToActor

Moves all viewport cameras to focus on the provided array of actors.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp

Syntax

void MoveViewportCamerasToActor
(
    const TArray< AActor * > & Actors,
    const TArray< UPrimitiveComponent * > & Components,
    bool bActiveViewportOnly
)

Remarks

Moves all viewport cameras to focus on the provided array of actors.

Parameters

Parameter

Description

Actors

Target actors.

Components

Target components (used of actors array is empty)

bActiveViewportOnly

If true, move/reorient only the active viewport.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss