To display item properties such as name, description, and type, use Fillers provided by Ultimate Grid Inventory. These components retrieve item properties using reflection, simplifying UI setup.
Set Up the Fillers:
Sprite Filler:
Showing the Sprite FillerLoading image
Title Filler:
Showing title filler for inspect windowLoading image
Item Type Filler:
Showing filler for item typeLoading image
Dimension Filler:
Showing Dimension FillerLoading image
Description Filler:
Showing the description filler with refresh layoutLoading image
If you need more performance, consider using an AbstractFiller without reflection, but you may need to write custom code.
Example of Direct Access Abstract Filler:
using Inventory.Scripts.Core.Items; using TMPro; using UnityEngine; using UnityEngine.UI; namespace Inventory.Scripts.Core.Displays.Filler { public class DirectAccessAbstractFillerExample : AbstractFiller { [SerializeField] private Image itemIcon; [SerializeField] private TMP_Text title; [SerializeField] private TMP_Text description; public override void OnSet(ItemTable itemTable) { itemIcon.sprite = itemTable.ItemDataSo.Icon; title.SetText(itemTable.ItemDataSo.DisplayName); description.SetText(itemTable.ItemDataSo.Description); } public override void OnReset() { itemIcon.sprite = default; title.SetText(""); description.SetText(""); } } }
Now you have configured the Inspect Window with the new UI style. You can always customize it further to match your design needs!
Go to the next page to continue configuring your grid inventory and make it unique!
This guide walks through configuring the Inspect Window, from importing assets to setting up the UI components and creating a prefab. Let me know if there's anything else you need!