After searching online there doesn’t seem to be an easy way to navigate a scroll box with a gamepad. Am I really the only one who uses a scroll box for an inventory system ( while using a controller )? So little info to find about this Any help would be greatly appreciated.
I have no controller to test it but there’s a bunch of things that may be worth trying. For example:
Have you tried granting the scroll box User / Keyboard focus and setting its isFocusable flag to {T}
Thank you for the reply!
I have, but to no avail. Giving focus to the scroll box makes you lose the focus on the scrollable items. Navigation buttons don’t work when focussing on the scroll box.
All right then, I half expected it wouldn’t work.
Perhaps you can scroll manually by overriding the onAnalogueValue and setting scroll box’ offset. This should work for smooth scrolling. Btw, what are you using for scrolling? Sticks, triggers?
Or accumulate indexes in a variable and ask the scroll box to scroll to the next child. This would be very similar to the example demonstrated here.
Thank you very much, I did something similar to your link and it works like a charm. I’m calling the ‘scroll widget into view’ node every time a button gains focus.
This code is located inside a custom button blueprint that is being called every 0,1 seconds.
Yes, every 0,1 seconds all the buttons in the scroll box update (initially intended to check focus and change button style) and if they have focus, the scroll to view function gets called
Clever! So it’s a repeater of sorts that fires for as long as the button is being held?
Just want to recognize the good work you continue to do mate. In the old post above I was looking for a way to scroll the scrollbar with a child that’s a gridpanel. I wanted to scroll that gridpanel without any mouse involvement so I could support both mouse and gamepad. You suggested in the linked thread something which had the gold nugget I needed. “Scroll Widget In To View” which worked perfectly first time.
Kind thanks, you have helped me again and I didn’t even ask you a question this time.
I left an answer on this forum about this. I hope this helps someone: