Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEdMode
Description
Allows an editor mode to override the bounding box used to focus the viewport on an editor selection. Note: Not used when HasCustomViewportFocus() returns true.
| Name | ComputeBoundingBoxForViewportFocus |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Tools/UEdMode.h |
| Include Path | #include "Tools/UEdMode.h" |
virtual bool ComputeBoundingBoxForViewportFocus
(
AActor * Actor,
UPrimitiveComponent * PrimitiveComponent,
FBox & InOutBox
) const
bool true if the mode overrides the box and populated InOutBox, false if it did not populate InOutBox
Parameters
| Name | Remarks |
|---|---|
| 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 |