Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorAssetLibrary
Description
Rename assets from the Content Browser that are in the folder. Equivalent to a Move operation. Will try to checkout the files. The Assets will be loaded before being renamed.
| Name | RenameDirectory |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h |
| Include Path | #include "EditorAssetLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset")
static 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. |