找回密码
 注册帐号

扫一扫,访问微社区

assetdatabase.validatemoveasset 验证移动资源

2015-1-1 03:26| 发布者: 杨炎| 查看: 1958| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: assetdatabase.validatemoveasset 验证移动资源static functionvalidatemoveasset(oldpath: string,newpath: string) : stringparameters参数oldpaththe path where the asset currently resides当前资源所处的路径n ...

assetdatabase.validatemoveasset 验证移动资源

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 can be 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描述

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

检查一个资源文件是否可以从一个文件夹移动到另外一个。(并不是真的移动这个文件)

参见:assetdatabase.moveasset

相关阅读

文章点评
相关文章