- Home /
How can I get ScrollRect to scroll per-item in a list of scrollable items?
Hi!
I'm working on a menu system that will use a game controller. It shows a list of game saves that you can scroll through vertically. I got the selection of the item to work great, but unfortunately when you select an item that's currently further down the scrollrect, it won't scroll.
I attempted to use verticalNormalizedPosition, but unfortunately it doesn't necessarily match the position of the selected item since it doesn't take into account what's already visible.
I can do some math to figure out how far the scroll is relative to visibility, but I feel like I may be overcomplicating this.
Has anyone else figured out a good approach to this issue?
Answer by jjbish · Feb 19, 2017 at 11:17 PM
I'm currently looking into this right now, but one simple solution is to adjust the value property of the scroll bar directly when you receive input from a stick. E.g. use the right stick (up or down) to adjust the value property up or down by a certain amount.
Your answer
Follow this Question
Related Questions
scroll wheel get weapon 3 Answers
Unity OnGUI 1 Answer
How to remove/hide GUI scroll bar 7 Answers
Is there a way to scroll GUI text WITHOUT scrollbars? 2 Answers
Please help with scroll 0 Answers