- Home /
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?
Answer by Bunny83 · Apr 01, 2011 at 09:52 PM
All you need to do is to place your list into a scrollview. Use GUI.BeginScrollView or if you use GUILayout : GUILayout.BeginScrollView
Answer by Eric5h5 · Apr 01, 2011 at 09:02 PM
The "workaround" is to change the code so that it has the behavior you want.
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.