Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Duplicate an asset. Will try to checkout the file. The Asset will be loaded before being duplicated.
| Name | DuplicateAsset |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorAssetSubsystem.h |
| Include Path | #include "Subsystems/EditorAssetSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorAssetSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset")
UObject * DuplicateAsset
(
const FString & SourceAssetPath,
const FString & DestinationAssetPath
)
The duplicated object if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| SourceAssetPath | Asset Path of the asset that we want to copy from. |
| DestinationAssetPath | Asset Path of the duplicated asset. |