FComponentEditorUtils::DuplicateComponent

Duplicates a component instance and takes care of attachment and registration.

Windows
MacOS
Linux

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

Syntax

static UActorComponent * DuplicateComponent
(
    UActorComponent * TemplateComponent
)

Remarks

Duplicates a component instance and takes care of attachment and registration.

Returns

The created clone of the provided TemplateComponent. nullptr if the duplication failed.

Parameters

Parameter

Description

TemplateComponent

The component to duplicate

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss