/Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h
Duplicates a component instance and takes care of attachment and registration.
The created clone of the provided TemplateComponent. nullptr if the duplication failed.
static [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * DuplicateComponent ( [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * TemplateComponent )