お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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"の最後には必ずファイル名またはディレクトリ名を含めるようにしてください。
@MenuItem ("Example/Copy Something") static function CopyAFile () { // copies the file "YourFileOrFolder" from "path/" to "copy/path/" FileUtil.CopyFileOrDirectory ("path/YourFileOrFolder", "copy/path/YourFileOrFolder"); }