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 void PasteComponents
(
TArray < UActorComponent * > & OutPastedComponents,
AActor * TargetActor,
USceneComponent * TargetComponent,
const FString * SourceData
)
Remarks
Attempts to paste components from the clipboard as siblings of the target component
Parameters
| Name | Description |
|---|---|
| OutPastedComponents | List of all the components that were pasted |
| TargetActor | The actor to attach the pasted components to |
| TargetComponent | The component the paste is targeting (will attempt to paste components as siblings). If null, will attach pasted components to the root. |
| SourceData | Component data to paste, or null to use the clipboard |