![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <InteractiveToolQueryInterfaces.h>
Inheritance diagram for IInteractiveToolCameraFocusAPI:Public Member Functions | |
| virtual bool | SupportsWorldSpaceFocusBox () |
| virtual FBox | GetWorldSpaceFocusBox () |
| virtual bool | SupportsWorldSpaceFocusPoint () |
| virtual bool | GetWorldSpaceFocusPoint (const FRay &WorldRay, FVector &PointOut) |
IInteractiveToolCameraFocusAPI provides two functions that can be used to extract "Focus" / "Region of Interest" information about an active Tool:
GetWorldSpaceFocusBox() - provides a bounding box for an "active region" if one is known. An example of using the FocusBox would be to center/zoom the camera in a 3D viewport onto this box when the user hits a hotkey (eg 'f' in the Editor). Should default to the entire active object, if no subregion is available.
GetWorldSpaceFocusPoint() - provides a "Focus Point" at the cursor ray if one is known. This can be used to (eg) center the camera at the focus point.
The above functions should not be called unless the corresponding SupportsX() function returns true.
Reimplemented in UMultiSelectionTool, and USingleSelectionTool.
|
inlinevirtual |
| WorldRay | 3D Ray that should be used to find the focus point, generally ray under cursor |
| PointOut | computed Focus Point |
Reimplemented in UMeshSurfacePointTool, UMultiSelectionTool, and USingleSelectionTool.
Reimplemented in UMultiSelectionTool, and USingleSelectionTool.
Reimplemented in UMultiSelectionTool, and USingleSelectionTool.