Version: 2017.2
public static string MoveAsset (string oldPath, string newPath);

参数

oldPath 资源当前所在的路径。
newPath 资源应该移动到的路径。

返回

string 如果资源已成功移动,则返回一个空字符串;否则,返回一条错误消息。

描述

Move an asset file from one folder to another.

所有路径均是相对于项目文件夹的路径,例如:"Assets/MyTextures/hello.png"。