UModelingToolsEditorMode::ComputeBoundingBoxForViewportFocus

Allows an editor mode to override the bounding box used to focus the viewport on a selection

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UEdMode::ComputeBoundingBoxForViewportFocus()

UModelingToolsEditorMode::ComputeBoundingBoxForViewportFocus()

References

Module

ModelingToolsEditorMode

Header

/Engine/Plugins/Editor/ModelingToolsEditorMode/Source/ModelingToolsEditorMode/Public/ModelingToolsEditorMode.h

Include

#include "ModelingToolsEditorMode.h"

Source

/Engine/Plugins/Editor/ModelingToolsEditorMode/Source/ModelingToolsEditorMode/Private/ModelingToolsEditorMode.cpp

Syntax

virtual bool ComputeBoundingBoxForViewportFocus
(
    AActor * Actor,
    UPrimitiveComponent * PrimitiveComponent,
    FBox & InOutBox
) const

Remarks

Allows an editor mode to override the bounding box used to focus the viewport on a selection

Returns

bool true if the mode overrides the box and populated InOutBox, false if it did not populate InOutBox

Parameters

Parameter

Description

Actor

The selected actor that is being considered for focus

PrimitiveComponent

The component in the actor being considered for focus

InOutBox

The box that should be computed for the actor and component