- Home /
Scrolling Inventory Overview Technique
I have a C# inventory system which seems to be working pretty well based on a List. I have functions that check, augment, decrease, sort, etc. the List. All this works fine. Inventory requirements are fairly minimal in my game, there are probably 50-100 inventory things max, with only 30 or so in any type category (max that will be displayed at once).
Where I am looking for advice is a best practices way to create a scroll-able, keyboard navigable, mouse clickable way to display this list. Currently, I have been playing around with a GUILayout and GUILayout.ScrollView and placing buttons. I plan to dynamically create buttons, and set the size of the scroll-able area, based on the number of inventory items in the list. I plan to link these up to my list and implement mouse/keyboard controls as necessary.
Does that sound like a good approach? I have read a number of posts saying buttons are not efficient, but I'm not aware of one that states an alternate approach that accomplishes the above need. Any ideas for improvement, or alternate approaches?
Your answer
Follow this Question
Related Questions
button wont work in GUI.BeginScrollView 0 Answers
how do i display this as GUI 1 Answer
Is there a way to scroll GUI text WITHOUT scrollbars? 2 Answers
Text pop up when mouse over gui button 2 Answers
GUI.Button is acting funky. 2 Answers