assetdatabase.deleteasset 删除资源

2014-12-31 20:11| 发布者: 杨炎| 查看: 1456| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: assetdatabase.deleteasset 删除资源static functiondeleteasset(path: string) : booldescription描述deletes the asset file at path.删除指定路径的资源文件。returns true if the asset has been successfully d ...

assetdatabase.deleteasset 删除资源

static functiondeleteasset(path: string) : bool

description描述

deletes the asset file at path.

删除指定路径的资源文件

returns true if the asset has been successfully deleted, false if it doesn't exit or couldn't be removed. all paths are relative to the project folder. like: "assets/mytextures/hello.png" see also:assetdatabase.moveassettotrash

如果资源已经被成功删除返回true,如果资源文件不存在或者不能成功移动到回收站返回false。所有的路径都是相对于工程目录文件。例如” assets/mytextures/hello.png”。

参见:assetdatabase.moveassettotrash

相关阅读

文章点评
相关文章