{"id":173,"date":"2025-08-12T23:45:56","date_gmt":"2025-08-12T14:45:56","guid":{"rendered":"https:\/\/cg-method.com\/unity\/?p=173"},"modified":"2026-10-13T02:02:15","modified_gmt":"2026-10-12T17:02:15","slug":"unity-batchmode-desktop-output","status":"publish","type":"post","link":"https:\/\/cg-method.com\/unity\/unity-batchmode-desktop-output\/","title":{"rendered":"Unity\u306e\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3067Editor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\uff5c\u5f15\u6570\u30fb\u30ed\u30b0\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Unity\u306eEditor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u304b\u3089\u547c\u3073\u3001<strong>\u30c6\u30ad\u30b9\u30c8\u306e\u4fdd\u5b58\u5148\u30fb\u30ed\u30b0\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b<\/strong>Windows\u5411\u3051\u306e\u6700\u5c0f\u4f8b\u3067\u3059\u3002\u6700\u521d\u306b1\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3057\u3001\u6b21\u306b\u540c\u3058\u51fa\u529b\u3092\u691c\u8a3c\u3059\u308b2\u6bb5\u968e\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\u30d3\u30eb\u30c9\u3084Prefab\u52a0\u5de5\u3092\u8ffd\u52a0\u3059\u308b\u524d\u306b\u3001\u5b9f\u884c\u6761\u4ef6\u3068\u5931\u6557\u306e\u6271\u3044\u3092\u78ba\u304b\u3081\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u4ed5\u69d8\u306e\u53c2\u7167\u306fUnity 6.3 LTS\uff086000.3\uff09\u3067\u3059\u3002\u63b2\u8f09\u3057\u305f\u7d14\u7c8bC#\u306e\u5f15\u6570\u30fb\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u3068\u3001BAT\u306e\u5f15\u6570\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9\u30fb\u5931\u6557\u6642\u505c\u6b62\u306fWindows\u3067\u72ec\u7acb\u691c\u8a3c\u3057\u307e\u3057\u305f\u3002<strong>Unity\u672c\u4f53\u306e\u8d77\u52d5\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u3001Editor\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u5b9f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u52d5\u4f5c\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<\/strong>\u5143\u8a18\u4e8b\u306e\u753b\u50cf\u306f\u65e7\u624b\u9806\u306e\u8cc7\u6599\u3067\u3001\u4eca\u56de\u306e\u4fee\u6b63\u7248\u306e\u5b9f\u884c\u753b\u50cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u306e\u753b\u50cf\u306f\u65e7\u7248\u306e\u5b9f\u884c\u753b\u9762\u3067\u3059\u3002\u4eca\u56de\u306e\u4f8b\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u81ea\u52d5\u9078\u629e\u305b\u305a\u3001\u6307\u5b9a\u3057\u305f\u65b0\u3057\u3044\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"124\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01.png\" alt=\"Unity\u306e\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3078\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3059\u308b\u6700\u5c0f\u624b\u9806\u306e\u30a4\u30e1\u30fc\u30b8\u3002\" class=\"wp-image-175\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01.png 318w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01-300x117.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2026\/09\/unity-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-matome\/\">Unity\u306e\u4f7f\u3044\u65b9\u30ac\u30a4\u30c9\uff5c\u74b0\u5883\u69cb\u7bc9\u30fbUI\u30fb2D\u30fb\u30a2\u30bb\u30c3\u30c8\u6d3b\u7528<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u306e\u74b0\u5883\u69cb\u7bc9\u3001UI\u5236\u4f5c\u30012D\u7d20\u6750\u306e\u7d44\u307f\u8fbc\u307f\u3001\u30a2\u30bb\u30c3\u30c8\u5c0e\u5165\u3001Prefab\u7ba1\u7406\u3092\u76ee\u7684\u5225\u306b\u6848\u5185\u3002\u66f8\u7c4d\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u6559\u6750\u306e\u9078\u3073\u65b9\u3068\u3001\u5236\u4f5c\u4e2d\u306b\u3064\u307e\u305a\u3044\u305f\u3068\u304d\u306e\u89e3\u8aac\u8a18\u4e8b\u3092\u63a2\u305b\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<h2 class=\"wp-block-heading\">batchmode\u3068nographics\u306e\u9055\u3044<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9805\u76ee\u30fb\u75c7\u72b6<\/th><th>\u6761\u4ef6\u30fb\u78ba\u8a8d\u5148<\/th><\/tr><\/thead><tbody><tr><td>-batchmode<\/td><td>Editor\u306e\u5bfe\u8a71\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u6291\u3048\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3002Editor\u51e6\u7406\u3067\u3042\u308a\u3001Player\u306e\u8d77\u52d5\u3067\u306f\u306a\u3044\u3002<\/td><\/tr><tr><td>-nographics<\/td><td>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30c7\u30d0\u30a4\u30b9\u3092\u521d\u671f\u5316\u3057\u306a\u3044\u3002\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u51fa\u529b\u4f8b\u3067\u306f\u4f7f\u7528\u3059\u308b\u3002\u30ab\u30e1\u30e9\u30fbRenderTexture\u30fbPNG\u64ae\u5f71\u7528\u306e\u6761\u4ef6\u3068\u306f\u5206\u3051\u308b\u3002<\/td><\/tr><tr><td>-executeMethod<\/td><td>Editor\u5c02\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u306estatic\u30e1\u30bd\u30c3\u30c9\u3092\u30af\u30e9\u30b9\u540d.\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u547c\u3076\u3002\u540d\u524d\u7a7a\u9593\u304c\u3042\u308b\u5834\u5408\u306f\u540d\u524d\u7a7a\u9593\u3082\u6307\u5b9a\u3059\u308b\u3002<\/td><\/tr><tr><td>-quit<\/td><td>\u3053\u3053\u3067\u6271\u3046\u540c\u671f\u30e1\u30bd\u30c3\u30c9\u304c\u623b\u3063\u305f\u5f8c\u306b\u7d42\u4e86\u3055\u305b\u308b\u305f\u3081\u306e\u6307\u5b9a\u3002\u975e\u540c\u671f\u51e6\u7406\u306e\u5b8c\u4e86\u5f85\u3061\u3084Test Framework\u306erunTests\u3078\u305d\u306e\u307e\u307e\u6d41\u7528\u3057\u306a\u3044\u3002<\/td><\/tr><tr><td>-logFile<\/td><td>\u30ed\u30b0\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a\u3059\u308b\u3002Windows\u306e\u6a19\u6e96\u51fa\u529b\u3068\u753b\u9762\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u8868\u793a\u3092\u540c\u4e00\u8996\u305b\u305a\u3001\u6700\u521d\u306f\u7d76\u5bfe\u30d1\u30b9\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u6b8b\u3059\u3002<\/td><\/tr><tr><td>-helloOutput<\/td><td>\u3053\u306e\u63b2\u8f09\u30b3\u30fc\u30c9\u72ec\u81ea\u306e\u5f15\u6570\u3002Unity\u306e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306f\u306a\u304f\u3001\u51fa\u529b\u3059\u308bhello.txt\u306e\u7d76\u5bfe\u30d1\u30b9\u3092\u6e21\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.unity3d.com\/6000.3\/Documentation\/Manual\/EditorCommandLineArguments.html\">Unity\u516c\u5f0f\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u4e00\u89a7<\/a>\u304c\u6280\u8853\u4ed5\u69d8\u306e\u57fa\u6e96\u3067\u3059\u3002\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u3082\u30e9\u30a4\u30bb\u30f3\u30b9\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eImport\u30fb\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u5fc5\u8981\u3067\u3059\u3002<a href=\"https:\/\/cg-method.com\/unity\/unity-prefab-batch-screenshot-tool\/\">2D Prefab\u306ePNG\u51fa\u529b<\/a>\u3084<a href=\"https:\/\/cg-method.com\/unity\/unity-ugui-prefab-screenshot\/\">uGUI\u306ePNG\u51fa\u529b<\/a>\u306e\u8a18\u4e8b\u306f\u5bfe\u8a71\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u4f7f\u3046\u64ae\u5f71\u30c4\u30fc\u30eb\u306a\u306e\u3067\u3001\u3053\u306e-nographics\u4ed8\u304d\u306e\u5b9f\u884c\u4f8b\u3078\u76f4\u63a5\u63a5\u7d9a\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u884c\u524d\u306b\u78ba\u8a8d\u3059\u308b\u6761\u4ef6<\/h2>\n\n\n<ol class=\"wp-block-list\"><li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8907\u88fd\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002ProjectSettings\/ProjectVersion.txt\u306eEditor\u7248\u3092\u78ba\u8a8d\u3057\u3001\u305d\u306e\u7248\u306b\u5408\u3046\u5b9f\u969b\u306eUnity.exe\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Hub\u306e\u4e00\u822c\u7684\u306a\u4fdd\u5b58\u5148\u306fC:\\Program Files\\Unity\\Hub\\Editor\\\u7248\u756a\u53f7\\Editor\\Unity.exe\u3067\u3059\u304c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3092\u56fa\u5b9a\u3057\u3066\u6c7a\u3081\u3064\u3051\u307e\u305b\u3093\u3002<\/li><li>\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067Editor\u306e\u5229\u7528\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u5b9a\u671f\u5b9f\u884c\u3067\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6761\u4ef6\u3082\u78ba\u8a8d\u3057\u307e\u3059\u3002\u521d\u56de\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u5bfe\u8a71\u64cd\u4f5c\u3092batchmode\u3067\u4ee3\u884c\u3059\u308b\u4f8b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u3044\u3066\u3044\u308bEditor\u3092\u9589\u3058\u307e\u3059\u3002\u540c\u4e00\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8907\u6570\u306eEditor\u3084\u30b8\u30e7\u30d6\u3067\u540c\u6642\u306b\u958b\u304b\u306a\u3044\u3088\u3046\u3001\u5b9a\u671f\u5b9f\u884c\u306b\u3082\u91cd\u8907\u8d77\u52d5\u3092\u9632\u3050\u8a2d\u5b9a\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/li><li>\u51fa\u529b\u5148\u306f\u30ed\u30fc\u30ab\u30eb\u30c9\u30e9\u30a4\u30d6\u306e\u66f8\u8fbc\u53ef\u80fd\u306a\u89aa\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3057\u307e\u3059\u3002BAT\u3078\u6e21\u3059\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u81ea\u4f53\u306f\u307e\u3060\u5b58\u5728\u3057\u306a\u3044\u65b0\u3057\u3044\u7d76\u5bfe\u30d1\u30b9\u306b\u3057\u307e\u3059\u3002UNC\u30fb\u76f8\u5bfe\u30d1\u30b9\u30fb\u30c9\u30e9\u30a4\u30d6\u76f8\u5bfe\u30d1\u30b9\u306f\u3053\u306e\u4f8b\u306e\u5bfe\u8c61\u5916\u3067\u3059\u3002<\/li><li>\u4e0b\u306eC#\u3092Assets\/Editor\/BatchHelloWriter.cs\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u65e7Batch_HelloWriter\u3068\u30af\u30e9\u30b9\u540d\u304c\u7570\u306a\u308a\u307e\u3059\u3002Editor\u5c02\u7528asmdef\u3092\u4f7f\u3046\u5834\u5408\u306f\u305d\u306eAssembly\u3078\u914d\u7f6e\u3057\u3001Console\u306e\u30a8\u30e9\u30fc\u3092\u89e3\u6d88\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\">1. \u540c\u671f\u51e6\u7406\u306eC#\u3092\u7528\u610f\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Run\u306f-helloOutput\u30921\u3064\u3060\u3051\u53d7\u3051\u53d6\u308a\u3001UTF-8\u30fbBOM\u306a\u3057\u30fb\u6539\u884c\u306a\u3057\u306ehello.txt\u3092CreateNew\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u305b\u305a\u3001\u89aa\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u306a\u3044\u5834\u5408\u3082\u5931\u6557\u306b\u3057\u307e\u3059\u3002VerifyOutput\u306f\u4fdd\u5b58\u3055\u308c\u305f\u30d0\u30a4\u30c8\u5217\u3092\u7167\u5408\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>using System;\nusing System.IO;\nusing System.Text;\nusing UnityEngine;\n\n\/\/ Save as Assets\/Editor\/BatchHelloWriter.cs. Synchronous Windows example.\npublic static class BatchHelloWriter\n{\n    public static void Run()\n    {\n        Execute(false);\n    }\n\n    public static void VerifyOutput()\n    {\n        Execute(true);\n    }\n\n    private static void Execute(bool verify)\n    {\n        try\n        {\n            if (!Application.isBatchMode)\n                throw new InvalidOperationException(\"This entry point requires -batchmode.\");\n            string path = BatchHelloFiles.ParseOutput(Environment.GetCommandLineArgs());\n            if (verify)\n                BatchHelloFiles.Verify(path);\n            else\n                BatchHelloFiles.WriteNew(path);\n            Debug.Log((verify ? \"HELLO_VERIFY_OK: \" : \"HELLO_WRITE_OK: \") + path);\n        }\n        catch (Exception error)\n        {\n            Debug.LogError(\"HELLO_FAILED: \" + error);\n            \/\/ The executeMethod caller receives the exception. Do not swallow it.\n            throw;\n        }\n    }\n}\n\n\/\/ No Unity APIs: these exact helpers can be tested separately on Windows .NET.\npublic static class BatchHelloFiles\n{\n    public const string Text = \"Hello from Unity batch mode!\";\n\n    public static string ParseOutput(string[] args)\n    {\n        if (args == null) throw new ArgumentNullException(\"args\");\n        string value = null;\n        for (int i = 0; i &lt; args.Length; i++)\n        {\n            if (args[i] != \"-helloOutput\") continue;\n            if (value != null) throw new ArgumentException(\"Duplicate -helloOutput.\");\n            if (i + 1 &gt;= args.Length || String.IsNullOrWhiteSpace(args[i + 1]) || args[i + 1].StartsWith(\"-\"))\n                throw new ArgumentException(\"-helloOutput needs an absolute file path.\");\n            value = args[++i];\n        }\n        if (value == null) throw new ArgumentException(\"Missing -helloOutput.\");\n        return ValidatePath(value);\n    }\n\n    public static string ValidatePath(string path)\n    {\n        \/\/ Limit this example to local drive paths; no relative, drive-relative or UNC paths.\n        if (String.IsNullOrWhiteSpace(path) || path.Length &lt; 4 ||\n            !((path[0] &gt;= 'A' &amp;&amp; path[0] &lt;= 'Z') || (path[0] &gt;= 'a' &amp;&amp; path[0] &lt;= 'z')) ||\n            path[1] != ':' || (path[2] != '\\\\' &amp;&amp; path[2] != '\/'))\n            throw new ArgumentException(\"Use a local drive absolute file path, such as C:\\\\UnityBatch\\\\run01\\\\hello.txt.\");\n        if (path.IndexOf(':', 2) &gt;= 0 || path.EndsWith(\"\\\\\") || path.EndsWith(\"\/\"))\n            throw new ArgumentException(\"A regular file path is required.\");\n        string full = Path.GetFullPath(path);\n        string parent = Path.GetDirectoryName(full);\n        if (String.IsNullOrEmpty(Path.GetFileName(full)) || !Directory.Exists(parent))\n            throw new DirectoryNotFoundException(\"Create the output directory before starting Unity.\");\n        return full;\n    }\n\n    public static void WriteNew(string path)\n    {\n        path = ValidatePath(path);\n        byte[] bytes = new UTF8Encoding(false, true).GetBytes(Text);\n        \/\/ CreateNew refuses to replace an existing file. A failed write can leave a partial file.\n        using (var stream = new FileStream(path, FileMode.CreateNew, FileAccess.Write, FileShare.None))\n            stream.Write(bytes, 0, bytes.Length);\n    }\n\n    public static void Verify(string path)\n    {\n        path = ValidatePath(path);\n        byte[] expected = new UTF8Encoding(false, true).GetBytes(Text);\n        byte[] actual = File.ReadAllBytes(path);\n        if (actual.Length != expected.Length)\n            throw new InvalidDataException(\"Unexpected output length.\");\n        for (int i = 0; i &lt; expected.Length; i++)\n            if (actual[i] != expected[i]) throw new InvalidDataException(\"Unexpected output bytes.\");\n    }\n}\n<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u5916\u3092\u30ed\u30b0\u3078\u51fa\u3057\u305f\u5f8c\u306bthrow\u3067\u547c\u51fa\u3057\u5143\u3078\u8fd4\u3057\u307e\u3059\u3002\u516c\u5f0f\u8cc7\u6599\u3067\u306fexecuteMethod\u304b\u3089\u4f8b\u5916\u3092\u9001\u51fa\u3059\u308b\u3068\u7d42\u4e86\u30b3\u30fc\u30c91\u3092\u8fd4\u3059\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u30fbImport\u30fb\u8d77\u52d5\u6642\u306e\u5931\u6557\u3082\u3042\u308b\u305f\u3081\u3001BAT\u3067\u306f1\u306b\u9650\u5b9a\u305b\u305a<strong>0\u4ee5\u5916\u3092\u5931\u6557\u3068\u3057\u3066\u505c\u6b62<\/strong>\u3057\u307e\u3059\u3002\u30ed\u30b0\u306e\u6210\u529f\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3051\u3067\u30d7\u30ed\u30bb\u30b9\u6210\u529f\u3068\u5224\u65ad\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">FileMode.CreateNew\u306f\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u62d2\u5426\u3057\u307e\u3059\u304c\u3001\u66f8\u8fbc\u307f\u9014\u4e2d\u306e\u5931\u6557\u3067\u306f\u4e0d\u5b8c\u5168\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u3068\u30ed\u30b0\u3092\u6b8b\u3057\u3001\u539f\u56e0\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u5225\u306e\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u518d\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u81ea\u52d5\u524a\u9664\u3084\u81ea\u52d5\u518d\u8a66\u884c\u3092\u3059\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">2. 1\u56de\u5b9f\u884c\u3059\u308bBAT\u3092\u4fdd\u5b58\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u3092run_hello.bat\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306fASCII\u6587\u5b57\u306a\u306e\u3067\u4fdd\u5b58\u6642\u306e\u6587\u5b57\u5316\u3051\u3092\u907f\u3051\u3089\u308c\u307e\u3059\u3002Windows\u306eBAT\u3068\u3057\u3066\u6539\u884c\u306fCRLF\u3092\u4f7f\u3044\u307e\u3059\u30023\u3064\u306e\u5f15\u6570\u306fUnity.exe\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u30fb\u65b0\u3057\u3044\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u9806\u3067\u3059\u3002Assets\u30d5\u30a9\u30eb\u30c0\u30fc\u81ea\u4f53\u3092-projectPath\u306b\u6e21\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-batch\" data-lang=\"BAT\"><code>@echo off\nsetlocal DisableDelayedExpansion\nif \"%~1\"==\"\" goto usage\nif \"%~2\"==\"\" goto usage\nif \"%~3\"==\"\" goto usage\nif not \"%~4\"==\"\" goto usage\nset \"UNITY=%~1\"\nset \"PROJECT=%~2\"\nset \"RUN=%~3\"\nif not exist \"%UNITY%\" goto bad_input\nif not exist \"%PROJECT%\\ProjectSettings\\ProjectVersion.txt\" goto bad_input\nif not \"%RUN:~1,2%\"==\":\\\" goto bad_input\nif exist \"%RUN%\" goto existing_run\nmkdir \"%RUN%\"\nif errorlevel 1 exit \/b 2\n\"%UNITY%\" -batchmode -quit -nographics ^\n -projectPath \"%PROJECT%\" ^\n -executeMethod BatchHelloWriter.Run ^\n -helloOutput \"%RUN%\\hello.txt\" ^\n -logFile \"%RUN%\\write.log\"\nset \"RESULT=%ERRORLEVEL%\"\nif not \"%RESULT%\"==\"0\" goto failed\necho Unity process returned 0. Check log and output: \"%RUN%\"\nexit \/b 0\n:failed\necho Unity process returned %RESULT%. Inspect logs in \"%RUN%\".\nexit \/b %RESULT%\n:existing_run\necho Run path already exists. Choose a new absolute run directory.\nexit \/b 2\n:bad_input\necho Check Unity.exe, ProjectVersion.txt and the absolute run directory.\nexit \/b 2\n:usage\necho Usage: %~nx0 \"Unity.exe\" \"Project root\" \"New absolute run directory\"\nexit \/b 2\n<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">3. \u30b3\u30de\u30f3\u30c9\u3068\u671f\u5f85\u7d50\u679c\u3092\u7167\u5408\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u5b9f\u884c\u3059\u308b\u4f8b\u3067\u3059\u30026000.3.xf1\u306f\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u7248\u3078\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u51fa\u529b\u5148\u3082\u81ea\u5206\u306e\u74b0\u5883\u3078\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u65b0\u3057\u3044\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-preformatted\">run_hello.bat \"C:\\Program Files\\Unity\\Hub\\Editor\\6000.3.xf1\\Editor\\Unity.exe\" \"C:\\UnityProjects\\MyProject\" \"C:\\UnityBatch\\run01\"\necho ExitCode=%ERRORLEVEL%<\/pre>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9805\u76ee\u30fb\u75c7\u72b6<\/th><th>\u6761\u4ef6\u30fb\u78ba\u8a8d\u5148<\/th><\/tr><\/thead><tbody><tr><td>BAT\u306e\u7d42\u4e86\u30b3\u30fc\u30c9<\/td><td>0\u3092\u671f\u5f85\u3002\u5165\u529b\u4e0d\u5099\u30fb\u65e2\u5b58\u306e\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u3053\u306eBAT\u304c2\u3092\u8fd4\u3059\u3002Unity\u8d77\u52d5\u5f8c\u306e\u5931\u6557\u306fUnity\u30d7\u30ed\u30bb\u30b9\u306e\u975e0\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u8fd4\u3059\u3002<\/td><\/tr><tr><td>write.log<\/td><td>Unity\u306e\u30ed\u30b0\u306bHELLO_WRITE_OK\u3068\u6307\u5b9a\u3057\u305fhello.txt\u306e\u30d1\u30b9\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002\u5931\u6557\u6642\u306fHELLO_FAILED\u3084\u305d\u308c\u3088\u308a\u524d\u306e\u8d77\u52d5\u30fb\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u8aad\u3080\u3002<\/td><\/tr><tr><td>hello.txt<\/td><td>\u5185\u5bb9\u306fHello from Unity batch mode!\u3002UTF-8\u3001BOM\u30fb\u672b\u5c3e\u6539\u884c\u306a\u3057\u3002\u30ed\u30b0\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u4e21\u65b9\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/td><\/tr><tr><td>\u4fdd\u5b58\u5834\u6240<\/td><td>C:\\UnityBatch\\run01\\hello.txt\u3068write.log\u3002BAT\u306f%~3\u306e\u6307\u5b9a\u5148\u3092\u4f5c\u308b\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30fbBAT\u306e\u7f6e\u304d\u5834\u6240\u30fb\u30b8\u30e7\u30d6\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4fdd\u5b58\u5148\u306b\u3057\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306e\u65e7\u753b\u9762\u306f\u3001\u4ee5\u524d\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u51fa\u529b\u3092\u4f7f\u3063\u305f\u624b\u9806\u3067\u3059\u3002\u4fdd\u5b58\u5148\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u540d\u306f\u4e0a\u306e\u4fee\u6b63\u7248\u3078\u8aad\u307f\u66ff\u3048\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"116\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h44_01.png\" alt=\"\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u306b\u6307\u5b9a\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u69d8\u5b50\u3002\" class=\"wp-image-176\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h44_01.png 401w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h44_01-300x87.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"124\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01.png\" alt=\"\u30d0\u30c3\u30c1\u5b9f\u884c\u6642\u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3001\u30a8\u30e9\u30fc\u3084\u51e6\u7406\u5931\u6557\u6642\u306e\u539f\u56e0\u8abf\u67fb\u306b\u5229\u7528\u3067\u304d\u308b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3002\" class=\"wp-image-175\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01.png 318w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-12_23h38_01-300x117.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-heading\">4. 2\u6bb5\u968e\u3092\u9806\u756a\u306b\u5b9f\u884c\u3057\u3001\u5931\u6557\u3057\u305f\u3089\u6b62\u3081\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u3092run_hello_verify.bat\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002Run\u304c\u8fd4\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u30b3\u30fc\u30c9\u3092\u76f4\u5f8c\u306b\u4fdd\u5b58\u3057\u3001\u5931\u6557\u6642\u306fVerifyOutput\u3092\u8d77\u52d5\u3057\u307e\u305b\u3093\u30022\u6bb5\u968e\u76ee\u3082\u5931\u6557\u3057\u305f\u3089\u305d\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u8fd4\u3057\u307e\u3059\u3002\u672a\u5b9a\u7fa9\u306ePrefabChecker\u3084TextureOptimizer\u3092\u547c\u3076\u4f8b\u306b\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-batch\" data-lang=\"BAT\"><code>@echo off\nsetlocal DisableDelayedExpansion\nif \"%~1\"==\"\" goto usage\nif \"%~2\"==\"\" goto usage\nif \"%~3\"==\"\" goto usage\nif not \"%~4\"==\"\" goto usage\nset \"UNITY=%~1\"\nset \"PROJECT=%~2\"\nset \"RUN=%~3\"\nif not exist \"%UNITY%\" goto bad_input\nif not exist \"%PROJECT%\\ProjectSettings\\ProjectVersion.txt\" goto bad_input\nif not \"%RUN:~1,2%\"==\":\\\" goto bad_input\nif exist \"%RUN%\" goto existing_run\nmkdir \"%RUN%\"\nif errorlevel 1 exit \/b 2\n\"%UNITY%\" -batchmode -quit -nographics ^\n -projectPath \"%PROJECT%\" ^\n -executeMethod BatchHelloWriter.Run ^\n -helloOutput \"%RUN%\\hello.txt\" ^\n -logFile \"%RUN%\\write.log\"\nset \"RESULT=%ERRORLEVEL%\"\nif not \"%RESULT%\"==\"0\" goto failed\n\"%UNITY%\" -batchmode -quit -nographics ^\n -projectPath \"%PROJECT%\" ^\n -executeMethod BatchHelloWriter.VerifyOutput ^\n -helloOutput \"%RUN%\\hello.txt\" ^\n -logFile \"%RUN%\\verify.log\"\nset \"RESULT=%ERRORLEVEL%\"\nif not \"%RESULT%\"==\"0\" goto failed\necho Unity process returned 0. Check log and output: \"%RUN%\"\nexit \/b 0\n:failed\necho Unity process returned %RESULT%. Inspect logs in \"%RUN%\".\nexit \/b %RESULT%\n:existing_run\necho Run path already exists. Choose a new absolute run directory.\nexit \/b 2\n:bad_input\necho Check Unity.exe, ProjectVersion.txt and the absolute run directory.\nexit \/b 2\n:usage\necho Usage: %~nx0 \"Unity.exe\" \"Project root\" \"New absolute run directory\"\nexit \/b 2\n<\/code><\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\">run_hello_verify.bat \"C:\\Program Files\\Unity\\Hub\\Editor\\6000.3.xf1\\Editor\\Unity.exe\" \"C:\\UnityProjects\\MyProject\" \"C:\\UnityBatch\\run02\"\necho ExitCode=%ERRORLEVEL%<\/pre>\n\n\n<p class=\"wp-block-paragraph\">\u6210\u529f\u6642\u306fhello.txt\u30fbwrite.log\u30fbverify.log\u304c\u3042\u308a\u30012\u3064\u76ee\u306e\u30ed\u30b0\u306bHELLO_VERIFY_OK\u304c\u51fa\u307e\u3059\u3002Unity\u30922\u56de\u8d77\u52d5\u3059\u308b\u306e\u3067\u3001\u8d77\u52d5\u3084Import\u306e\u8cbb\u7528\u30822\u56de\u767a\u751f\u3057\u307e\u3059\u3002\u591a\u6570\u306e\u51e6\u7406\u30921\u56de\u306eEditor\u8d77\u52d5\u3067\u6e08\u307e\u305b\u305f\u3044\u5834\u5408\u306f\u30011\u3064\u306estatic\u5165\u53e3\u304b\u3089\u540c\u671f\u51e6\u7406\u3092\u9806\u756a\u306b\u547c\u3076\u69cb\u6210\u3092\u5225\u9014\u4f5c\u308a\u307e\u3059\u3002\u975e\u540c\u671f\u51e6\u7406\u306f\u5b8c\u4e86\u901a\u77e5\u3092\u5f85\u3063\u3066\u7d42\u4e86\u3059\u308b\u8a2d\u8a08\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">5. \u5b9a\u671f\u5b9f\u884c\u3067\u5909\u308f\u308b\u6761\u4ef6<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u540c\u3058\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u624b\u52d5\u5b9f\u884c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u5b9a\u671f\u5b9f\u884c\u306e\u64cd\u4f5c\u3078\u540c\u30583\u5f15\u6570\u3092\u6e21\u3057\u307e\u3059\u3002\u6bce\u56de\u5b58\u5728\u3057\u306a\u3044\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u7528\u610f\u3059\u308b\u904b\u7528\u304c\u5fc5\u8981\u3067\u3001run01\u3092\u7e70\u308a\u8fd4\u3057\u6e21\u3059\u30682\u56de\u76ee\u306f\u5165\u529b\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u308a\u307e\u3059\u3002\u30ed\u30b0\u306e\u4fdd\u5b58\u30fb\u4fdd\u6301\u671f\u9593\u3068\u51fa\u529b\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3092\u30b8\u30e7\u30d6\u5074\u3067\u7ba1\u7406\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9805\u76ee\u30fb\u75c7\u72b6<\/th><th>\u6761\u4ef6\u30fb\u78ba\u8a8d\u5148<\/th><\/tr><\/thead><tbody><tr><td>\u5b9f\u884c\u30a2\u30ab\u30a6\u30f3\u30c8<\/td><td>Unity\u30e9\u30a4\u30bb\u30f3\u30b9\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8aad\u53d6\u3001\u51fa\u529b\u66f8\u8fbc\u3092\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u78ba\u8a8d\u3002\u30ed\u30b0\u30aa\u30f3\u4e2d\u306e\u81ea\u5206\u3068\u30b5\u30fc\u30d3\u30b9\u7528\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u304c\u540c\u3058\u3068\u306f\u9650\u3089\u306a\u3044\u3002<\/td><\/tr><tr><td>\u30d1\u30b9\u3068\u958b\u59cb\u30d5\u30a9\u30eb\u30c0\u30fc<\/td><td>Unity.exe\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30fb\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u7d76\u5bfe\u30d1\u30b9\u3067\u5f15\u7528\u3059\u308b\u3002\u958b\u59cb\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u4f9d\u5b58\u3057\u305flogs\\\u3078\u306e\u66f8\u8fbc\u307f\u3092\u907f\u3051\u308b\u3002<\/td><\/tr><tr><td>\u91cd\u8907\u8d77\u52d5<\/td><td>\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5b9f\u884c\u304c\u7d42\u308f\u308b\u524d\u306b\u6b21\u3092\u59cb\u3081\u306a\u3044\u3002\u5bfe\u8a71Editor\u3082\u9589\u3058\u308b\u3002<\/td><\/tr><tr><td>\u6a29\u9650\u3068\u5bfe\u8a71<\/td><td>\u6700\u4e0a\u4f4d\u6a29\u9650\u3092\u4e00\u5f8b\u306e\u5fc5\u9808\u6761\u4ef6\u306b\u3057\u306a\u3044\u3002\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u78ba\u8a8d\u3057\u3001pause\u30fb\u30c0\u30a4\u30a2\u30ed\u30b0\u30fbFolderPanel\u3092\u7121\u4eba\u51e6\u7406\u3078\u6301\u3061\u8fbc\u307e\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306e2\u753b\u50cf\u306f\u65e7\u30bf\u30b9\u30af\u8a2d\u5b9a\u306e\u8cc7\u6599\u3067\u3059\u3002OS\u5168\u822c\u306e\u30bf\u30b9\u30af\u4f5c\u6210\u64cd\u4f5c\u3068\u3001\u3053\u3053\u3067\u6271\u3046Unity\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u30fb\u5f15\u6570\u30fb\u30ed\u30b0\u30fb\u540c\u6642\u8d77\u52d5\u306e\u6761\u4ef6\u306f\u5206\u3051\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"384\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_31.png\" alt=\"\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306b\u3088\u308b\u5b9a\u671f\u5b9f\u884c\u8a2d\u5b9a\u306e\u5168\u822c\u30bf\u30d6\u3067\u3001\u6700\u4e0a\u4f4d\u306e\u7279\u6a29\u3067\u5b9f\u884c\u3059\u308b\u9805\u76ee\u3092\u6307\u5b9a\u3059\u308b\u753b\u9762\u3002\" class=\"wp-image-181\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_31.png 537w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_31-300x215.png 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"495\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_59.png\" alt=\"\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306e\u64cd\u4f5c\u30bf\u30d6\u3067\u3001\u5b9f\u884c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u5f15\u6570\u306a\u3069\u306e\u8a2d\u5b9a\u9805\u76ee\u3092\u5165\u529b\u3059\u308b\u753b\u9762\u3002\" class=\"wp-image-182\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_59.png 450w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/08\/2025-08-13_23h20_59-273x300.png 273w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u5931\u6557\u6642\u306b\u78ba\u8a8d\u3059\u308b\u9806\u756a<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9805\u76ee\u30fb\u75c7\u72b6<\/th><th>\u6761\u4ef6\u30fb\u78ba\u8a8d\u5148<\/th><\/tr><\/thead><tbody><tr><td>BAT\u304c2\u3092\u8fd4\u3057Unity\u30ed\u30b0\u304c\u306a\u3044<\/td><td>3\u5f15\u6570\u30fb\u5b9f\u5728\u3059\u308bUnity.exe\u30fbProjectVersion.txt\u30fb\u7d76\u5bfe\u51fa\u529b\u5148\u30fb\u65e2\u5b58\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u78ba\u8a8d\u3002mkdir\u5931\u6557\u306a\u3089\u89aa\u306e\u66f8\u8fbc\u6a29\u9650\u3068\u5bb9\u91cf\u3092\u78ba\u8a8d\u3002<\/td><\/tr><tr><td>Unity\u304c\u8d77\u52d5\u3057\u306a\u3044\u30fb\u5165\u53e3\u30ed\u30b0\u304c\u306a\u3044<\/td><td>\u30e9\u30a4\u30bb\u30f3\u30b9\u3001\u4f7f\u7528\u7248\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e8c\u91cd\u8d77\u52d5\u3001Import\u3001Package\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u30ed\u30b0\u3092\u5148\u306b\u8aad\u3080\u3002<\/td><\/tr><tr><td>\u30e1\u30bd\u30c3\u30c9\u304c\u898b\u3064\u304b\u3089\u306a\u3044<\/td><td>Assets\/Editor\u306e\u914d\u7f6e\u3001static\u3001BatchHelloWriter.Run\u307e\u305f\u306fVerifyOutput\u306e\u7db4\u308a\u3001Assembly\u3068\u540d\u524d\u7a7a\u9593\u3092\u78ba\u8a8d\u3002<\/td><\/tr><tr><td>HELLO_FAILED\u304c\u3042\u308b<\/td><td>\u4f8b\u5916\u306e\u5185\u5bb9\u3068\u51fa\u529b\u30d1\u30b9\u3092\u8aad\u3080\u3002\u5f15\u6570\u306e\u91cd\u8907\u30fb\u6b20\u843d\u3001\u89aa\u30d5\u30a9\u30eb\u30c0\u30fc\u3001\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3001\u30ed\u30c3\u30af\u3084\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3092\u5207\u308a\u5206\u3051\u308b\u3002<\/td><\/tr><tr><td>VerifyOutput\u3060\u3051\u5931\u6557<\/td><td>hello.txt\u306e\u5b58\u5728\u3068\u5185\u5bb9\u3092\u78ba\u8a8d\u3002\u7de8\u96c6\u30fb\u524a\u9664\u30fb\u5225\u30d1\u30b9\u30fb\u4e0d\u5b8c\u5168\u306a\u66f8\u8fbc\u307f\u3092\u5207\u308a\u5206\u3051\u30012\u30ed\u30b0\u3092\u4e26\u3079\u3066\u898b\u308b\u3002<\/td><\/tr><tr><td>\u753b\u50cf\u51fa\u529b\u3084\u975e\u540c\u671f\u51e6\u7406\u304c\u7d42\u308f\u3089\u306a\u3044<\/td><td>\u3053\u306e\u540c\u671f\u30c6\u30ad\u30b9\u30c8\u4f8b\u3068\u6761\u4ef6\u304c\u9055\u3046\u3002\u63cf\u753b\u304c\u5fc5\u8981\u306a\u3089nographics\u3001\u975e\u540c\u671f\u306a\u3089quit\u3068\u5b8c\u4e86\u5f85\u3061\u306e\u8a2d\u8a08\u3092\u898b\u76f4\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u4eca\u56de\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u305f\u7bc4\u56f2<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u304b\u3089\u540c\u4e00\u306eBatchHelloFiles\u30af\u30e9\u30b9\u3092\u62bd\u51fa\u3057\u3001Windows\u306e.NET\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3057\u305f\u3002\u6b63\u5e38\u306a\u5f15\u65701\u30b1\u30fc\u30b9\u3001\u6b20\u843d\u30fb\u91cd\u8907\u30fb\u76f8\u5bfe\u30fbUNC\u7b49\u306e\u62d2\u542612\u30b1\u30fc\u30b9\u3001UTF-8\u66f8\u8fbc\u307f\u30fb\u30d0\u30a4\u30c8\u7167\u5408\u30fb\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u4fdd\u8b77\u30fb\u7834\u640d\u5185\u5bb9\u30fb\u6b20\u843d\u30d5\u30a1\u30a4\u30eb\u306e5\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">BAT\u306f\u81ea\u4f5c\u306e\u8a66\u9a13\u7528\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u30679\u30b1\u30fc\u30b9\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002\u7a7a\u767d\u30fb\u65e5\u672c\u8a9e\u30fb&amp;\u3092\u542b\u3080\u30d1\u30b9\u306e\u5f15\u6570\u4fdd\u6301\u3001\u5b50\u30d7\u30ed\u30bb\u30b9\u306e0\u30fb7\u30fb9\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u30011\u6bb5\u968e\u76ee\u5931\u6557\u6642\u306b2\u6bb5\u968e\u76ee\u3092\u8d77\u52d5\u3057\u306a\u3044\u3053\u3068\u3001\u5165\u529b\u4e0d\u5099\u3067\u306f\u8d77\u52d5\u3057\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306fUnity\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Unity\u306e\u8d77\u52d5\u30fbImport\u30fb\u30e9\u30a4\u30bb\u30f3\u30b9\u30fbEditor API\u306e\u691c\u8a3c\u306b\u306f\u6570\u3048\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5b9fUnity\u3067\u306f\u307e\u305a\u8907\u88fd\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u6b63\u5e381\u56de\u3001\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3084\u66f8\u8fbc\u62d2\u5426\u306b\u3088\u308b\u5931\u6557\u30012\u6bb5\u968e\u5b9f\u884c\u3001\u958b\u3044\u305fEditor\u3068\u306e\u7af6\u5408\u3092\u8a66\u3057\u307e\u3059\u3002\u4f7f\u7528\u7248\u30fb\u65e5\u6642\u30fb\u5b9f\u884c\u30a2\u30ab\u30a6\u30f3\u30c8\u30fb\u5f15\u6570\u30fb\u30ed\u30b0\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9\u30fb\u51fa\u529b\u3092\u4fdd\u5b58\u3057\u3066\u304b\u3089\u3001\u30a2\u30bb\u30c3\u30c8\u52a0\u5de5\u3084\u30d3\u30eb\u30c9\u3078\u5e83\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u3059\u308bEditor\u62e1\u5f35<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u5143\u30b3\u30fc\u30c9\u306e\u914d\u5e03\u5148\u306f<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/unity\/unity-batchmode-desktop-output\">GitHub\u306e\u65e7\u914d\u5e03<\/a>\u3067\u3059\u3002\u65e702.sh\u30fb03.sh\u306b\u306fWindows BAT\u306e\u5185\u5bb9\u304c\u5165\u3063\u3066\u3044\u308b\u305f\u3081\u3001POSIX\u30b7\u30a7\u30eb\u7528\u3068\u5224\u65ad\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u4eca\u56de\u306e\u4fee\u6b63\u7248\u306f\u672c\u6587\u306eC#\u3068.bat\u5168\u6587\u3092\u4f7f\u3044\u307e\u3059\u3002\u5916\u90e8\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u4eca\u56de\u5909\u66f4\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30c7\u30a3\u30bf\u62e1\u5f35\u306e\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/06\/unity-prefab-csv-export-tool-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-prefab-csv-export-tool\/\">Unity\u306ePrefab\u5185\u90e8\u3092CSV\u51fa\u529b\u3059\u308bEditor\u62e1\u5f35\uff1a\u968e\u5c64\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u4e00\u89a7<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u9078\u629e\u30d5\u30a9\u30eb\u30c0\u30fc\u4ee5\u4e0b\u306ePrefab\u304b\u3089GameObject\u968e\u5c64\u3068\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30925\u5217CSV\u3078\u51fa\u529b\u3002Editor\u3078\u306e\u5c0e\u5165\u3001CSV\u5f15\u7528\u3001\u540c\u540d\u306e\u8b58\u5225\u3001\u8aad\u8fbc\u5f8c\u306e\u89e3\u653e\u3001\u6210\u529f\u30fb\u5931\u6557\u306e\u78ba\u8a8d\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/06\/unity-prefab-batch-screenshot-tool-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-prefab-batch-screenshot-tool\/\">Unity\u30672D Prefab\u3092\u4e00\u62ecPNG\u51fa\u529b\u3059\u308b\uff5cSpriteRenderer\u7528Editor\u62e1\u5f35<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Assets\u5185\u306e2D Prefab\u3092SpriteRenderer\u306e\u7bc4\u56f2\u3067\u4e00\u62ecPNG\u51fa\u529b\u3059\u308bEditor\u62e1\u5f35\u3002Preview Scene\u3001\u540c\u540d\u5bfe\u7b56\u3001512px\u306e\u30d5\u30ec\u30fc\u30e0\u3001\u5931\u6557\u6642\u306e\u78ba\u8a8d\u3068\u672a\u691c\u8a3c\u6761\u4ef6\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/06\/unity-prefab-tree-csv-export-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-prefab-tree-csv-export\/\">Unity\u306ePrefab\u30d5\u30a1\u30a4\u30eb\u3092\u30c4\u30ea\u30fcCSV\u51fa\u529b\u3059\u308bEditor\u62e1\u5f35\uff1a\u30d5\u30a9\u30eb\u30c0\u30fc\u968e\u5c64<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Assets\u5185\u306e\u9078\u629e\u30d5\u30a9\u30eb\u30c0\u30fc\u4ee5\u4e0b\u306b\u3042\u308bPrefab\u30d5\u30a1\u30a4\u30eb\u30921\u5217\u306e\u30c4\u30ea\u30fcCSV\u3078\u51fa\u529b\u3002AssetDatabase\u3067\u306e\u691c\u7d22\u3001\u5c0e\u5165\u3001\u4fdd\u5b58\u3001\u7a7a\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u6271\u3044\u3001CSV\u5f15\u7528\u3068\u78ba\u8a8d\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2025\/06\/unity-ugui-prefab-screenshot-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-ugui-prefab-screenshot\/\">Unity\u3067uGUI Prefab\u3092\u4e00\u62ecPNG\u51fa\u529b\u3059\u308b\uff5cImage\u306e\u7bc4\u56f2\u3068Canvas\u8a2d\u5b9a<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">uGUI\u306eImage\u3060\u3051\u3067\u69cb\u6210\u3057\u305fPrefab\u3092PNG\u3078\u51fa\u529b\u3059\u308bEditor\u62e1\u5f35\u3002Canvas\u306e\u89aa\u5bf8\u6cd5\u3001RectTransform\u306e\u7bc4\u56f2\u3001\u7e26\u6a2a\u6bd4\u30682048px\u4e0a\u9650\u3001\u5931\u6557\u6642\u306e\u78ba\u8a8d\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff1aUnity\u306e\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3067 Editor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4f55\u3092\u3059\u308b\u4f8b\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unity\u306eEditor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u304b\u3089\u547c\u3073\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u4fdd\u5b58\u5148\u30fb\u30ed\u30b0\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u3001Windows\u5411\u3051\u306e\u6700\u5c0f\u4f8b\u3067\u3059\u3002\u6700\u521d\u306b1\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3057\u3001\u6b21\u306b\u540c\u3058\u51fa\u529b\u3092\u691c\u8a3c\u3059\u308b2\u6bb5\u968e\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\u30d3\u30eb\u30c9\u3084Prefab\u52a0\u5de5\u3092\u8ffd\u52a0\u3059\u308b\u524d\u306b\u3001\u5b9f\u884c\u6761\u4ef6\u3068\u5931\u6557\u306e\u6271\u3044\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">-batchmode\u3068-nographics\u306f\u3001\u4f55\u304c\u9055\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">-batchmode\u306f\u3001Editor\u306e\u5bfe\u8a71\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u6291\u3048\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u6307\u5b9a\u3067\u3001Editor\u51e6\u7406\u3067\u3042\u308a\u3001Player\u306e\u8d77\u52d5\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002-nographics\u306f\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30c7\u30d0\u30a4\u30b9\u3092\u521d\u671f\u5316\u3057\u306a\u3044\u6307\u5b9a\u3067\u3001\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u51fa\u529b\u4f8b\u3067\u306f\u4f7f\u7528\u3057\u307e\u3059\u3002\u30ab\u30e1\u30e9\u30fbRenderTexture\u30fbPNG\u64ae\u5f71\u7528\u306e\u6761\u4ef6\u3068\u306f\u5206\u3051\u3066\u8003\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">-executeMethod\u3068-quit\u306f\u3001\u3069\u3046\u4f7f\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">-executeMethod\u306f\u3001Editor\u5c02\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u306estatic\u30e1\u30bd\u30c3\u30c9\u3092\u30af\u30e9\u30b9\u540d.\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u547c\u3073\u307e\u3059\uff08\u540d\u524d\u7a7a\u9593\u304c\u3042\u308b\u5834\u5408\u306f\u540d\u524d\u7a7a\u9593\u3082\u6307\u5b9a\uff09\u3002-quit\u306f\u3001\u3053\u3053\u3067\u6271\u3046\u540c\u671f\u30e1\u30bd\u30c3\u30c9\u304c\u623b\u3063\u305f\u5f8c\u306b\u7d42\u4e86\u3055\u305b\u308b\u305f\u3081\u306e\u6307\u5b9a\u3067\u3001\u975e\u540c\u671f\u51e6\u7406\u306e\u5b8c\u4e86\u5f85\u3061\u3084Test Framework\u306erunTests\u3078\u305d\u306e\u307e\u307e\u6d41\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002-logFile\u306f\u3001\u30ed\u30b0\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d42\u4e86\u30b3\u30fc\u30c9\u306f\u3001\u3069\u3046\u6271\u3048\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u516c\u5f0f\u8cc7\u6599\u3067\u306f\u3001executeMethod\u304b\u3089\u4f8b\u5916\u3092\u9001\u51fa\u3059\u308b\u3068\u7d42\u4e86\u30b3\u30fc\u30c91\u3092\u8fd4\u3059\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u30fbImport\u30fb\u8d77\u52d5\u6642\u306e\u5931\u6557\u3082\u3042\u308b\u305f\u3081\u3001BAT\u3067\u306f1\u306b\u9650\u5b9a\u305b\u305a\u30010\u4ee5\u5916\u3092\u5931\u6557\u3068\u3057\u3066\u505c\u6b62\u3057\u307e\u3059\u3002\u30ed\u30b0\u306e\u6210\u529f\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3051\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u6210\u529f\u3068\u5224\u65ad\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u304c\u9014\u4e2d\u3067\u5931\u6557\u3057\u305f\u3068\u304d\u306f\u3001\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">FileMode.CreateNew\u306f\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u62d2\u5426\u3057\u307e\u3059\u304c\u3001\u66f8\u8fbc\u307f\u9014\u4e2d\u306e\u5931\u6557\u3067\u306f\u3001\u4e0d\u5b8c\u5168\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u3068\u30ed\u30b0\u3092\u6b8b\u3057\u3001\u539f\u56e0\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u5225\u306e\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u518d\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u81ea\u52d5\u524a\u9664\u3084\u81ea\u52d5\u518d\u8a66\u884c\u3092\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u884c\u3059\u308b\u3068\u304d\u306e\u6ce8\u610f\u70b9\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unity.exe\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u30fb\u65b0\u3057\u3044\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u3001\u3053\u306e\u9806\u306e\u5f15\u6570\u306b\u3057\u307e\u3059\u3002Assets\u30d5\u30a9\u30eb\u30c0\u30fc\u81ea\u4f53\u3092-projectPath\u306b\u6e21\u3055\u305a\u3001\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u65b0\u3057\u3044\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059\u3002Unity.exe\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30fb\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u7d76\u5bfe\u30d1\u30b9\u3067\u6307\u5b9a\u3057\u3001\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5b9f\u884c\u304c\u7d42\u308f\u308b\u524d\u306b\u6b21\u3092\u59cb\u3081\u306a\u3044\u3067\u304f\u3060\u3055\u3044\uff08\u5bfe\u8a71Editor\u3082\u9589\u3058\u307e\u3059\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5931\u6557\u3057\u305f\u3068\u304d\u306f\u3001\u4f55\u304b\u3089\u78ba\u8a8d\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">BAT\u304c2\u3092\u8fd4\u3057\u3066Unity\u306e\u30ed\u30b0\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u5f15\u6570\u30fb\u5b9f\u5728\u3059\u308bUnity.exe\u30fbProjectVersion.txt\u30fb\u7d76\u5bfe\u51fa\u529b\u5148\u30fb\u65e2\u5b58\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002Unity\u304c\u8d77\u52d5\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u3001\u4f7f\u7528\u7248\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e8c\u91cd\u8d77\u52d5\u3001Import\u3001Package\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u30ed\u30b0\u3092\u5148\u306b\u8aad\u307f\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001Assets\/Editor\u306e\u914d\u7f6e\u3001static\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u7db4\u308a\u3001Assembly\u3068\u540d\u524d\u7a7a\u9593\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306f\u3001\u5b9f\u6a5f\u3067\u691c\u8a3c\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ed5\u69d8\u306e\u53c2\u7167\u306fUnity 6.3 LTS\uff086000.3\uff09\u3067\u3059\u3002\u63b2\u8f09\u3057\u305f\u7d14\u7c8bC#\u306e\u5f15\u6570\u30fb\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u3068\u3001BAT\u306e\u5f15\u6570\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9\u30fb\u5931\u6557\u6642\u505c\u6b62\u306f\u3001Windows\u3067\u72ec\u7acb\u691c\u8a3c\u3057\u307e\u3057\u305f\u3002Unity\u672c\u4f53\u306e\u8d77\u52d5\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u3001Editor\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u5b9f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u52d5\u4f5c\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002\u5143\u8a18\u4e8b\u306e\u753b\u50cf\u306f\u65e7\u624b\u9806\u306e\u8cc7\u6599\u3067\u3001\u4eca\u56de\u306e\u4fee\u6b63\u7248\u306e\u5b9f\u884c\u753b\u50cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u4ed5\u69d8\u306f\u3001Unity\u306e\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Windows\u306eUnity\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3067\u9759\u7684Editor\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u6700\u5c0f\u4f8b\u3002\u7d76\u5bfe\u30d1\u30b9\u306e\u51fa\u529b\u5f15\u6570\u3001\u30ed\u30b0\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3001\u5931\u6557\u6642\u306e\u505c\u6b62\u3068\u5b9a\u671f\u5b9f\u884c\u306e\u6761\u4ef6\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Unity\u306e\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3067Editor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\uff5c\u5f15\u6570\u30fb\u30ed\u30b0\u30fb\u7d42\u4e86\u30b3\u30fc\u30c9","ssp_meta_description":"Windows\u306eUnity\u30d0\u30c3\u30c1\u30e2\u30fc\u30c9\u3067\u9759\u7684Editor\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u6700\u5c0f\u4f8b\u3002\u7d76\u5bfe\u30d1\u30b9\u306e\u51fa\u529b\u5f15\u6570\u3001\u30ed\u30b0\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3001\u5931\u6557\u6642\u306e\u505c\u6b62\u3068\u5b9a\u671f\u5b9f\u884c\u306e\u6761\u4ef6\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002"},"categories":[24],"tags":[],"class_list":["post-173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-editor"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":14,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":22383,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/173\/revisions\/22383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media\/178"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media?parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/categories?post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/tags?post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}