AssetDatabase.ValidateMoveAsset Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.ValidateMoveAsset

static function ValidateMoveAsset (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 can be moved, and an error string otherwise. All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"

Description

Checks if an asset file can be moved from one folder to another. (Without actually moving the file)

See Also: AssetDatabase.MoveAsset