Exemplo n.º 1
0
        // 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();
        }
Exemplo n.º 2
0
 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();
 }