// ウインドウの作成. private static void Window_Create(string title) { GetWindow <SvnMenu>().Close(); if (svnMenuInstance != null) { svnMenuInstance.Close(); } svnMenuInstance = CreateInstance <SvnMenu>(); GUIContent titleContent = new GUIContent(title); svnMenuInstance.titleContent = titleContent; svnMenuInstance.minSize = new Vector2(500, 100); svnMenuInstance.maxSize = new Vector2(500, 100); svnMenuInstance.Show(); }
// ウインドウの作成. private static void Window_Create(string title) { GetWindow<SvnMenu>().Close(); if (svnMenuInstance != null) { svnMenuInstance.Close(); } svnMenuInstance = CreateInstance<SvnMenu>(); GUIContent titleContent = new GUIContent(title); svnMenuInstance.titleContent = titleContent; svnMenuInstance.minSize = new Vector2(500,100); svnMenuInstance.maxSize = new Vector2(500,100); svnMenuInstance.Show(); }