I’m trying to implement an alphabet type scroll bar for a contact list I have which is based on a ScrollRect. I want it to function like the iOS contact list:
I’m able to render the alphabet on the scrollbar, but how do I get it to jump to the particular letter in the alphabet when a user taps that letter, while maintaining regular drag scrolling functionality?
That would be a very interesting control, will add a request to the UI Extensions project for it.
As for implementation, the scrollview does have a vertical scroll position value, the trouble is matching that to the local position of the control within it. So you would need to work out the vertical scroll position for each of the group letters and cache that somehow plus update it when a new contact is added.
More than that, it includes an installable asset to easily deploy all the controls, plus editor scripts to use them as easily as the native UI controls. Someday I’ll get round to publishing it on the store for free as well.
Need to get all the community built controls in one easy to use place.