New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is impossible to jump to a particular index/item in the loopscrollrect #14
Comments
You need to implement it yourself. |
Do you have a snippet of code which will explain how to do this ? Since the items are loaded/unloaded as we scroll, how can I scroll to a specific item ? |
There are two ways in convenience: (a) add a coroutine for tween (for example move 20 pixels per second...and wait till the position you want). As you can get the child yourself, you know whether it is the right place to stop. However this is not elegant 😸 (b) In fact I've already provided a method called Just pick the method you want |
Thank you... this is really useful. Thanks for documenting it too. Pretty sure lots of people will surely use it properly. |
https://github.com/qiankanglai/LoopScrollRect/blob/master/Images/ScrollToIndex.gif new version for Scroll To Index (with coroutine) |
No description provided.
The text was updated successfully, but these errors were encountered: