AssetDatabase
- AddObjectToAsset
- AssetPathToGUID
- ClearLabels
- CompleteLabel
- Contains
- CopyAsset
- CreateAsset
- CreateFolder
- DeleteAsset
- ExportPackage
- GenerateUniqueAssetPath
- GetAssetPath
- GetCachedIcon
- GetDependencies
- GetLabels
- GetTextMetaDataPathFromA...
- GUIDToAssetPath
- ImportAsset
- ImportPackage
- IsMainAsset
- LoadAllAssetRepresentations...
- LoadAllAssetsAtPath
- LoadAssetAtPath
- LoadMainAssetAtPath
- MoveAssetToTrash
- MoveAsset
- OpenAsset
- Refresh
- RenameAsset
- SaveAssets
- SetLabels
- StartAssetEditing
- StopAssetEditing
- ValidateMoveAsset
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”。
最后修改:2011年5月31日 Tuesday 14:13