找回密碼
 注冊帳號

掃一掃,訪問微社區

assetdatabase.deleteasset 刪除資源

2014-12-31 20:31| 發布者: 楊炎| 查看: 2060| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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

相關閱讀

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