Publisher | GameStrike Studio |
---|---|
File size | 396.50kB |
Number of files | 10 |
Latest version | 1.0.1 |
Latest release date | 2024-12-03 03:32:17 |
First release date | 2024-12-03 03:32:17 |
Supported Unity versions | 2018.4.2 or higher |
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