Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Duplicate a directory and the assets in it. Will try to checkout the files. The Assets will be loaded before being duplicated.
| Name | DuplicateDirectory |
| 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")
bool DuplicateDirectory
(
const FString & SourceDirectoryPath,
const FString & DestinationDirectoryPath
)
The duplicated object if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| SourceDirectoryPath | Directory of the assets that we want to duplicate from. |
| DestinationDirectoryPath | Directory of the duplicated asset. |