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.

Description

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

See Also: AssetDatabase.MoveAsset.