public static void ShowWindow() { ModuleManagerWindow window = EditorWindow.GetWindow <ModuleManagerWindow>(false, "Module Manager"); window.minSize = new Vector2(500f, 300f); StartBackgroundTask(RequestModules(delegate(ModuleItem[] items) { window.m_Items = items; })); }
public static void ShowWindow() { ModuleManagerWindow window = EditorWindow.GetWindow <ModuleManagerWindow>(false, "Module Manager"); window.minSize = new Vector2(500f, 300f); window.StartBackgroundTask(window.RequestModules()); }
private void OpenModuleManager() { GUILayout.FlexibleSpace(); EditorGUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Open Module Manager", "AC Button")) { ModuleManagerWindow.ShowWindow(); Close(); } GUILayout.FlexibleSpace(); EditorGUILayout.EndHorizontal(); }