AssetDatabase.MoveAsset Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
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.