gui list problem

hi i am making a button which displays a list of options while clicked. I used the script depicted here http://www.unifycommunity.com/wiki/index.php?title=PopupList

however, when my list gets too big (30+ entries), only about 12 of them gets displayed when i clicked on the button the rest are offscreen, and it doesnt automatically scroll down the list. What is a workaround to this?

2 Answers

2

All you need to do is to place your list into a scrollview. Use GUI.BeginScrollView or if you use GUILayout : GUILayout.BeginScrollView

The "workaround" is to change the code so that it has the behavior you want.

:D nice "answer".

Actually, it is the only appropriate answer. Someone using 'borrowed' code and needing 'help' getting it to do what they want.. I mean.. come on.. I'm also a noob but at least I try to put in some effort of my own.