Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Subsystems > API/Editor/UnrealEd/Subsystems/UEditorActorSubsystem
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorActorSubsystem.h |
| Include | #include "Subsystems/EditorActorSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorActorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Level Utility",
Meta=(AdvancedDisplay=1))
AActor * DuplicateActor
(
AActor * ActorToDuplicate,
UWorld * ToWorld,
FVector Offset
)
Remarks
Duplicate an actor from the world editor. The duplicated actor, or none if it didn't succeed
Parameters
| Name | Description |
|---|---|
| ActorToDuplicate | Actor to duplicate. |
| ToWorld | World to place the duplicated actor in. |
| Offset | Translation to offset duplicated actor by. |