In this guide, you'll learn how to set the tile style and border for your Grid Inventory.
In the Inventory Settings SO file, there's a section called Grid Settings where you can specify the images for your grid style.
Grid Settings area on InventorySettingsSOLoading image
To help you understand the Grid Settings properties, we've included an image that explains how these properties work, making it easier to configure them.
Here's an example illustrating the Grid Settings on the grid:
Following our UI Tutorial, we'll set up the slot and border for our Inventory.
In our Figma project, we've exported the slot and border as PNGs, which we'll import into Unity. You can create any rectangle in the tool of your choice; we're using Figma.
With the package installed, configure the Border and Slot images using the steps below:
Configuring Border with Sprite EditorLoading image
After making the adjustments, hit Apply to save the changes.
IMPORTANT: Only make these changes to the Border image, not the Slot image, as altering the Slot image can cause issues in the UI. The Slot image should maintain its default values, as shown here:
Slot Sprite Editor default valuesLoading image
(Optional) For better visibility of the grid, set the Filter Mode on the images to Point (no filter).