Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Rename a directory. Equivalent to a Move operation moving all contained assets. Will try to checkout the files. The Assets will be loaded before being renamed.
| Name | RenameDirectory |
| 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 RenameDirectory
(
const FString & SourceDirectoryPath,
const FString & DestinationDirectoryPath
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| SourceDirectoryPath | Directory of the assets that we want to rename from. |
| DestinationDirectoryPath | Directory of the renamed asset. |