Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2022.3.10f1 | Compatible | Compatible | Compatible |
In a game UI, having a ScrollView is very useful, whether to show a list of players, leaderboards, or even items. If you use this type of component (you probably do) you may have already had the need to filter or order these items programmatically.
Here I bring a simple to implement solution. Basically you will add a script to the items that go into the "Content" of the "Scroll Rect" Component with the variables you want to use as filters and another Script to the "Scroll Rect" Component that will be the "engine" that will do the work to filter and sort items inside the ScrollView.
Demo: https://gamestrike.com.br/ScrollviewFilter/
License attribution: Filter icons created by Freepik - Flaticon
ScrollViewFilterPlus
