{"categories":["Unity","Unity - GitHub","Unity - \u81ea\u4f5c\u30ea\u30dd\u30b8\u30c8\u30ea"],"provider_name":"Hatena Blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","url":"https://baba-s.hatenablog.com/entry/2020/11/24/090000","author_url":"https://blog.hatena.ne.jp/baba_s/","height":"190","blog_url":"https://baba-s.hatenablog.com/","width":"100%","published":"2020-11-24 09:00:00","author_name":"baba_s","version":"1.0","provider_url":"https://hatena.blog","title":"\u3010Unity\u3011Dictionary \u578b\u306b\u95a2\u4fc2\u3059\u308b\u6c4e\u7528\u7684\u306a\u95a2\u6570\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9\u300cUniDirectoryUtils\u300d\u3092 GitHub \u306b\u516c\u958b\u3057\u307e\u3057\u305f","description":"\u30ea\u30dd\u30b8\u30c8\u30ea \u4f7f\u7528\u4f8b \u901a\u5e38 using System.IO; using UnityEditor; public class Example { [MenuItem( \"Tools/Hoge\" )] private static void Hoge() { var path = \"Assets/Scripts/Example.Generated.cs\"; var dir = Path.GetDirectoryName( path ); Directory.CreateDirectory( dir ); File.WriteAllText( path, \"\u30d4\u30ab\u30c1\u30e5\u30a6\" ); } } UniDire\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2020%2F11%2F24%2F090000\" title=\"\u3010Unity\u3011Dictionary \u578b\u306b\u95a2\u4fc2\u3059\u308b\u6c4e\u7528\u7684\u306a\u95a2\u6570\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9\u300cUniDirectoryUtils\u300d\u3092 GitHub \u306b\u516c\u958b\u3057\u307e\u3057\u305f - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365"}