Navigation
API > API/Plugins > API/Plugins/UVEditorTools > API/Plugins/UVEditorTools/UUVToolSelectionAPI
Description
Sets the current selection. Selections should be same type, with no more than one selection object per asset, and no empty selection objects. Selections should be referring to the UnwrapCanonical of the associated target.
| Name | SetSelections |
| 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 |
void SetSelections
(
const TArray < FUVToolSelection > & SelectionsIn,
bool bBroadcast,
bool bEmitChange
)
Parameters
| Name | Remarks |
|---|---|
| bBroadcast | If true, broadcast OnPreSelectionChange and OnSelectionChanged |
| bEmitChange | If true, emit an undo/redo transaction. |
| bAllowInconsistentSelectionTypes | If true, allow setting selections with different selection types than any currently set UnsetElement selections. Primarily useful during undo/redo |