AssetDatabase.RenameAsset

static function RenameAsset (pathName : String, newName : String) : String

Parameters

NameDescription
pathName The path where the asset currently resides.
newName The new name which should be given to the asset.

Returns

String - An empty string, if the asset has been successfully renamed, and an error string otherwise.

Description

Rename an asset file.