Hey All,
My problem is that i am using a dropDown with to many elements and i use xbox control to use the interface. Well I can select the first elements which are shown easily but the others i can’t , i have to use the mouse to do it. I search a way (solution) to scroll automatically when i select (not really select but just focus) an option of the drop down. Help please !
Thank you : )
If I were you I would implement it as a set of simple tasks.
-
first, a controller class which were listning on the xbox controller and I would simulate which “index” i selected first, and not consider the graphics.
-
when i had that up and running i world make sure that the scrollist would show that index by setting the scrolling elements anchored position ( to do this the pivot must be in the top of the element ).
-
Then for each of the objets in the list I would have two states , 1 focused and 2 not focused. I would do that by making sure that each object has a Behaviour on it with a method to set the state like SetFocusState and SetNotFocusedState . For every frame I would loop through all the items and set the state.
Cheers
1 Like
Thanks !