お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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ファイルまたはディレクトリを移動します
この関数で使用するパスは、Unityプロジェクトからの相対パスになりますが、絶対パスで指定することも可能です。 全てのファイルセパレータは"/"で区切ります。 "to"の最後には必ずファイル名またはディレクトリ名を含めるようにしてください。
// creates a menu entry to move a file or a directory. @MenuItem ("Example/Move Something") static function MoveAFile () { // moves the file "YourFileOrFolder" from "path/" to "move/path/" FileUtil.MoveFileOrDirectory("path/YourFileOrFolder", "move/path/YourFileOrFolder"); }