Navigation
API > API/Plugins > API/Plugins/UVEditorTools > API/Plugins/UVEditorTools/UUVToolSelectionAPI
Description
Gets the bounding box center of the current selection. The center point is cached and invalidated on the next SetSelection call, but can be forced to be recalculated.
Note: you should call with bForceRecalculate = true whenever calling this from OnCanonicalModified, because it is not guaranteed that the selection api will detect the mesh change (and therefore invalidate the cached value) before your call site, due to the order of OnCanonicalModified broadcasts
| Name | GetUnwrapSelectionBoundingBoxCenter |
| Type | function |
| Header File | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Public/Selection/UVToolSelectionAPI.h |
| Include Path | #include "Selection/UVToolSelectionAPI.h" |
| Source | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Private/Selection/UVToolSelectionAPI.cpp |
FVector3d GetUnwrapSelectionBoundingBoxCenter
(
bool bForceRecalculate
)