{"blog_url":"https://baba-s.hatenablog.com/","version":"1.0","author_name":"baba_s","height":"190","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/baba_s/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2014%2F12%2F01%2F110400\" title=\"\u3010Unity\u3011\u30ec\u30a4\u30e4\u30fc\u540d\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30a4\u30e4\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 - \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>","categories":["Unity","Unity - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"],"published":"2014-12-01 11:04:00","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","width":"100%","type":"rich","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using UnityEngine; public static class GameObjectExtensions { /// <summary> /// \u30ec\u30a4\u30e4\u30fc\u540d\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30a4\u30e4\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059 /// </summary> public static void SetLayer( this GameObject self, string layerName ) { self.layer = LayerMask.NameToLayer( layerName ); } } \u4f7f\u3044\u65b9 gameObject.SetLayer( \"UI\" ); \u95a2\u9023\u8a18\u4e8b","title":"\u3010Unity\u3011\u30ec\u30a4\u30e4\u30fc\u540d\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30a4\u30e4\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","url":"https://baba-s.hatenablog.com/entry/2014/12/01/110400"}