{"provider_url":"https://hatena.blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","author_name":"baba_s","blog_url":"https://baba-s.hatenablog.com/","image_url":null,"categories":["Unity","Unity - \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2023%2F01%2F02%2F000100\" title=\"\u3010Unity\u3011Parent directory must exist before creating asset at Assets/XXXX. - \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>","version":"1.0","height":"190","type":"rich","title":"\u3010Unity\u3011Parent directory must exist before creating asset at Assets/XXXX.","url":"https://baba-s.hatenablog.com/entry/2023/01/02/000100","published":"2023-01-02 00:01:00","author_url":"https://blog.hatena.ne.jp/baba_s/","description":"\u6982\u8981 using UnityEditor; using UnityEngine; public class Example { [MenuItem( \"Tools/Hoge\" )] private static void Hoge() { var material = new Material( Shader.Find( \"Specular\" ) ); AssetDatabase.CreateAsset( material, \"Assets/Hoge/Material.mat\" ); } } \u4e0a\u8a18\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067 Parent directory must exist before creat\u2026","width":"100%"}