public static Rect DoWindow(int id, Rect rect, GUI.WindowFunction func, string text, GUIStyle style = null, params GUILayoutOption[] options) { if (!table.TryGetValue(id, out var window)) { table[id] = window = new ResizableWindow_(); } return(window.Do(id, rect, func, text, style, options)); }
public static Rect ResizableWindow(int id, Rect rect, GUI.WindowFunction func, string text, GUIStyle style = null, params GUILayoutOption[] options) { return(ResizableWindow_.DoWindow(id, rect, func, text, style, options)); }