Is it possible to scroll to an item in Unreal Engine
I’m creating a ListBox with Previous and Next buttons. When the Next button is pressed, the selected index increases by 1.
However, when the selected item is not visible in the list, is it possible to automatically scroll to that item using the NoesisGUI plugin in Unreal Engine?
I tried to find a function related to the ListBox, but nothing seems to work.


However, when the selected item is not visible in the list, is it possible to automatically scroll to that item using the NoesisGUI plugin in Unreal Engine?
I tried to find a function related to the ListBox, but nothing seems to work.


Re: Is it possible to scroll to an item in Unreal Engine
Hi,
You can adjust the scrolling position to get the selected item in view by doing this after you set the SelectedIndex:
You can adjust the scrolling position to get the selected item in view by doing this after you set the SelectedIndex:
Code: Select all
ListBox* lb;
lb->ScrollIntoView(lb->GetSelectedItem());
Re: Is it possible to scroll to an item in Unreal Engine
Just adding onto hcpizzi's great answer, I've also gone ahead and created a ticket for this to be able to achieve this result natively within Studio; if you wish to follow it, you can do so at #4881.
Thanks!
- Dorian
Thanks!
- Dorian
Who is online
Users browsing this forum: Bing [Bot], q158772500 and 5 guests