Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FComponentEditorUtils
Description
Deletes the indicated components and identifies the component that should be selected following the operation. Note: Does not take care of the actual selection of a new component. It only identifies which component should be selected.
| Name | DeleteComponents |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h |
| Include Path | #include "Kismet2/ComponentEditorUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp |
static int32 DeleteComponents
(
const TArray < UActorComponent * > & ComponentsToDelete,
UActorComponent *& OutComponentToSelect
)
The number of components that were actually deleted
Parameters
| Name | Remarks |
|---|---|
| ComponentsToDelete | The list of components to delete |
| OutComponentToSelect | The component that should be selected after the deletion |