Module |
|
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 * DuplicateComponent
(
UActorComponent * TemplateComponent
)
Duplicates a component instance and takes care of attachment and registration.
The created clone of the provided TemplateComponent. nullptr if the duplication failed.
Parameter |
Description |
---|---|
TemplateComponent |
The component to duplicate |