{"published":"2013-04-10 15:29:49","author_name":"anchan828","categories":["UnityEditor","EditorWindow"],"author_url":"https://blog.hatena.ne.jp/anchan828/","title":"EditorWindow\u306e\u30e1\u30cb\u30e5\u30fc\u306b\u9805\u76ee\u3092\u8ffd\u52a0\u3059\u308b - IHasCustomMenu","blog_url":"https://anchan828.hatenablog.jp/","provider_name":"Hatena Blog","url":"https://anchan828.hatenablog.jp/entry/2013/04/10/152949","description":"\u8981\u3059\u308b\u306b\u300cEditorWindow\u306eMenu\u3067\u4f7f\u308f\u308c\u308bGenericMenu\u304c\u53d6\u5f97\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3002 \u300c\u2713\u300d\u3082\u3064\u304f\u3088\uff01 using UnityEngine; using UnityEditor; public class HasMenu : EditorWindow, IHasCustomMenu { private bool on; public void AddItemsToMenu (GenericMenu menu) { menu.AddItem (new GUIContent (\"hogee\"), false, () => { Debug.Log (\"Hogeee\"); }); m\u2026","width":"100%","height":"190","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/a/anchan828/20130410/20130410152609.png","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanchan828.hatenablog.jp%2Fentry%2F2013%2F04%2F10%2F152949\" title=\"EditorWindow\u306e\u30e1\u30cb\u30e5\u30fc\u306b\u9805\u76ee\u3092\u8ffd\u52a0\u3059\u308b - IHasCustomMenu - \u3051\u3044\u3054\u306e\u306a\u3093\u3068\u304b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u3051\u3044\u3054\u306e\u306a\u3093\u3068\u304b","version":"1.0","provider_url":"https://hatena.blog"}