Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UUnrealEdEngine
Description
Duplicates the given actors. Handles the case where you are trying to duplicate PrefabInstance actors.
| Name | DuplicateActors |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/UnrealEdEngine.h |
| Include Path | #include "Editor/UnrealEdEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorActor.cpp |
virtual void DuplicateActors
(
const TArray < AActor * > & InActorsToDuplicate,
TArray < AActor * > & OutNewActors,
ULevel * InLevel,
const FVector & LocationOffset
)
Parameters
| Name | Remarks |
|---|---|
| InActorsToDuplicate | Array of actors to duplicate |
| OutNewActors | List of all the actors that were duplicated |
| InLevel | Level to place duplicate |
| LocationOffset | Offset to apply to actor locations after they're created |