FEditorViewportClient::CenterViewportAtPoint

Translates the viewport so that the given LookAt point is at the center of viewport, while maintaining current Location/LookAt distance

Windows
MacOS
Linux

References

Module

UnrealEd

Header

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

Include

#include "EditorViewportClient.h"

Source

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

Syntax

void CenterViewportAtPoint
(
    const FVector & NewLookAt,
    bool bInstant
)

Remarks

Translates the viewport so that the given LookAt point is at the center of viewport, while maintaining current Location/LookAt distance

Parameters

Parameter

Description

NewLookAt

The new NewLookAt point to focus on

bInstant

Whether or not to focus the viewport instantly or over time

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