1
NGUI 3 Support / Scrollview : Keep selected item in view
« on: September 30, 2015, 03:43:08 AM »
I'm using a scrollview for a list of save slots. The number of slots is more than can be seen at once. The only input device is a controller.
At any given time, one of the save slots is the UICamera.selectedObject, and the player can use the controller to change the selected object/save slot (using KeyNavigation). However it's possible to select slots that are out of view of the scrollview.
Is there a way to ensure that the selected object is inside the viewable region of the scrollview?
At any given time, one of the save slots is the UICamera.selectedObject, and the player can use the controller to change the selected object/save slot (using KeyNavigation). However it's possible to select slots that are out of view of the scrollview.
Is there a way to ensure that the selected object is inside the viewable region of the scrollview?
