言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

AssetDatabase.MoveAssetToTrash

public 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. 全てのパスはプロジェクトフォルダに対する相対指定となります。例えば "Assets/MyTextures/hello.png" です。 See Also: AssetDatabase.DeleteAsset.