AssetDatabase.MoveAssetToTrash 移动资源到回收站

static function MoveAssetToTrash (path : string) : bool

Description描述

Moves the asset at path to the trash.

将指定路径的资源移动到回收站。

Returns true if the asset has been successfully removed, false if it doesn't exit or couldn't be moved to the trash. All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png" See Also: AssetDatabase.DeleteAsset

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

参见:AssetDatabase.DeleteAsset

Page last updated: 2011-5-31