AssetDatabase.MoveAsset

static function MoveAsset (oldPath : String, newPath : String) : String

Parameters

NameDescription
oldPath the path where the asset currently resides
newPath the path which the asset should be moved to

Returns

String - an empty string, if the asset has been successfully moved, and an error string otherwise. All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"

Description

Move an asset file from one folder to another.