// Layout protected void LayoutGUIList(GUIListNode listNode, int width, int height) { scrollPos = GUILayout.BeginScrollView(scrollPos, GUILayout.Width(width), GUILayout.Height(height)); scrollPos = (Vector2)listNode.DoLayout(null, null, scrollPos); GUILayout.EndScrollView(); }
internal void OnWindow(int windowId) { scrollPos = GUILayout.BeginScrollView(scrollPos, GUILayout.Width(drawRect.width), GUILayout.Height(drawRect.height)); scrollPos = (Vector2)listNode.DoLayout(null, null, scrollPos); GUILayout.EndScrollView(); }