public static void ShowWindow(int tab) { ConfigWindow window = GetWindow(typeof(ConfigWindow)) as ConfigWindow; if (window != null) { window.tab = tab; } }
public static void ShowWindow(int tab) { ConfigWindow window = EditorWindow.GetWindow(typeof(ConfigWindow)) as ConfigWindow; window.tab = tab; }