UEditorAssetLibrary::RenameAsset

Rename an asset from the Content Browser.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h

Include

#include "EditorAssetLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Asset")
static bool RenameAsset
(
    const FString & SourceAssetPath,
    const FString & DestinationAssetPath
)

Remarks

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.

Returns

True if the operation succeeds.

Parameters

Parameter

Description

SourceAssetPath

Asset Path of the asset that we want to copy from.

DestinationAssetPath

Asset Path of the renamed asset.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss