お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close/path/ のファイルまたはディレクトリを削除します
この関数で使用するパスは、Unityプロジェクトからの相対パスになりますが、絶対パスで指定することも可能です。 全てのファイルのセパレータは"/" (Unixスタイル)でなければいけません。
// creates a menu entry to remove a file or a directory. @MenuItem ("Example/Remove Something") static function RemoveAFile () { //removes the file FileUtil.DeleteFileOrDirectory("your/path/to/the/folder/or/file"); }