// サブウィンドウを開く public static MapFrontView WillAppear(MapEditorMain _parent) { MapFrontView window = (MapFrontView)EditorWindow.GetWindow(typeof(MapFrontView), false); window.Show(); window.minSize = new Vector2(WINDOW_W, WINDOW_H); window.SetParent(_parent); window.Init(); return(window); }
void OpenFrontView() { if (m_frontWindow != null) { m_frontWindow.Close(); } if (m_frontWindow == null) { m_frontWindow = MapFrontView.WillAppear(this); } m_frontWindow.Init(); AssetDatabase.Refresh(); }