Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Kismet2 > API/Editor/UnrealEd/Kismet2/FComponentEditorUtils
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h |
| Include | #include "Kismet2/ComponentEditorUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp |
static UActorComponent &42; DuplicateComponent
&40;
UActorComponent &42; TemplateComponent
&41;
Remarks
Duplicates a component instance and takes care of attachment and registration. The created clone of the provided TemplateComponent. nullptr if the duplication failed.
Parameters
| Name | Description |
|---|---|
| TemplateComponent | The component to duplicate |