Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

AssetDatabase.MoveAssetToTrash

public static bool MoveAssetToTrash(string path);

Description

Moves the asset at path to the trash.

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

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答