找回密碼
 注冊帳號

掃一掃,訪問微社區

assetdatabase.moveasset 移動資源

2015-1-1 01:11| 發布者: 楊炎| 查看: 1697| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: assetdatabase.moveasset 移動資源static functionvalidatemoveasset(oldpath: string,newpath: string) : stringparameters參數oldpaththe path where the asset currently resides當前資源所處的路徑newpaththe pa ...

assetdatabase.moveasset 移動資源

static functionvalidatemoveasset(oldpath: string,newpath: string) : string

parameters參數

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"

返回string類型 - 如果資源成功共移動返回一個空的字符串,否者返回錯誤字符串。所有的路徑都是相對于工程目錄文件。例如” assets/mytextures/hello.png”。

description描述

move an asset file from one folder to another.

將一個資源文件從一個文件夾移動到另外一個文件夾。

相關閱讀

文章點評
相關文章
女校游泳队彩金