Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
Copies selected actors to the clipboard. Supports copying actors from multiple levels. NOTE: Doesn't support copying prefab instance actors!
| Name | CopySelectedActorsToClipboard |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
| Include Path | #include "Editor/EditorEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp |
void CopySelectedActorsToClipboard
(
UWorld * InWorld,
const bool bShouldCut,
const bool bIsMove,
bool bWarnAboutReferences,
FString * DestinationData
)
Parameters
| Name | Remarks |
|---|---|
| InWorld | World to get the selected actors from |
| bShouldCut | If true, deletes the selected actors after copying them to the clipboard |
| bIsMove | If true, this cut is part of a move and the actors will be immediately pasted |
| bWarnAboutReferences | Whether or not to show a modal warning about referenced actors that may no longer function after being moved |
| DestinationData | Data that was copied to clipboard |