Scroll box with left and right buttons instead of a scroll bar

Hi there! So what I’m trying to do is make an interface with a scroll box that moves left and right with two buttons and not a scroll bar that you click and drag. This is what I have so far. It’s a scroll box with buttons inside. I want the right arrow button to move the bar along.

However, I want each button to be in the same place…Heres a quick diagram of what I want…

When right button is pushed it goes to this…

Would it be possible to do this? I thought about using an array in some way but I wouldn’t know where to begin, thank you for any suggestions!

Hello everybody, the solution is to use “set scroll box offset” function. The amount of offset is measuring in “slate units” (i think its just pixels). But scrolling is not smoothed, if you need smoothing you have to make it yourself (using “set offset” and math). Also you need to clamp offset within zero and “offset of end”, otherwise scrollbox will scroll to negate, its not visible but you’ll feel it while trying to scroll back.

2 Likes