Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorAssetLibrary
Description
Rename an asset from the Content Browser. Equivalent to a Move operation. Will try to checkout the file. The Asset will be loaded before being renamed.
| Name | RenameAsset |
| 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 RenameAsset
(
const FString & SourceAssetPath,
const FString & DestinationAssetPath
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| SourceAssetPath | Asset Path of the asset that we want to copy from. |
| DestinationAssetPath | Asset Path of the renamed asset. |