Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UGeometrySelectionManager
Description
Directly set the current Selection for the specified Component to NewSelection. This function allows external code to construct explicit selections, eg for a Tool or Command to emit a new Selection. Component must already be an active target, ie set via AddActiveTarget. If the selection of the Target would be modified, a selection-change transaction will be emitted.
| Name | SetSelectionForComponent |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/GeometrySelectionManager.h |
| Include Path | #include "Selection/GeometrySelectionManager.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Selection/GeometrySelectionManager.cpp |
virtual bool SetSelectionForComponent
(
UPrimitiveComponent * Component,
const FGeometrySelection & NewSelection
)