//[MenuItem("NJG MiniMap/Add NJG MiniMap %&m")] static public void AddNJGMiniMap() { GameObject parent = NJGEditorTools.SelectedRoot(); GameObject go = CreateLocalGameObject(true); go.AddComponent <NJG.NJGMapBase>(); go.name = "NJG MiniMap"; go.transform.parent = parent.transform; go.transform.localPosition = Vector3.zero; }