How to Implement Sub-Filters for Filtered Items

Shanmukh

Member
Hi, I need some guidance on implementing sub-filters for already filtered items.

Current Setup:

  • I have multiple items and categories in my inventory.
  • Each weapon type belongs to a specific category (e.g., Pistols, Rifles, Shotguns, etc.).
  • I use ItemInfo Category Filters to filter inventory items based on weapon categories.

Requirement:

Once I filter the inventory by a weapon category (e.g., Rifles), I want to apply sub-filters to refine the results further based on item rarity, such as:

  • Common Weapon Skins
  • Epic Weapon Skins
  • Legendary Weapon Skins
The goal is to allow players to first select a weapon category and then narrow down their selection using rarity-based sub-filters.

Any suggestions or examples would be greatly appreciated! Thanks in advance for your help.
 
The Multi Filter Sorter component allow you to set as many filters as you want.

The GridFilters is public so you can set it via another script.
1739198997409.png

Or if you prefer you can make your own custom filter by inherrting
ItemInfoFilterSorterBase


Btw do you really want to sub-filter or do you want to filter and sort?
if you want to see some custom sort I recommend you check the
"2 Filters & Sorters"
Feature scene. This one has a good example of filtering (even a search bar ) and sorting (even a dropdown with multiple sorts)
 
Back
Top