Redirect to the Docs main page.Docs

Items

Creating an Item

Guide on how to create an item for your inventory in Ultimate Grid Inventory.

Creating Items for Your Inventory

In the Ultimate Grid Inventory (UGI) system, each item is represented by an Item Data SO (Scriptable Object). This object contains all the information about an item, including its appearance, behavior, and properties.

Creating an Item Data SO in Unity

To create a new item:

  1. In the Project window, right-click in your desired folder
  2. Navigate to Inventory > Items > New Item

Creating item data SO through UGI MenuLoading image

Configuring Item Properties

After creating the Item Data SO, you'll need to configure its properties in the Inspector panel:

Item Data SO FileLoading image

Item Data Settings

  • Display Name: The name shown to players when the item appears in the inventory grid or tooltips.
  • Description: A detailed description of the item that appears in the inspector window. Use this to provide context or gameplay hints.
  • Dimensions SO: Defines how many grid cells the item occupies (width and height). Larger items take up more inventory space.
  • Icon: The visual representation of your item. This sprite will be displayed in the inventory grid.
  • Item Data Type SO: Categorizes the item and determines which holders can accept it. Used for filtering and validation.
  • Audio Cue SO: The sound effect that plays when players interact with the item (picking up, placing, etc.).

Images Configuration

  • Icon Size SO: Controls how the icon is displayed when the item is in the main inventory grid.
  • In Holder Icon Size SO: Determines how the icon appears when the item is placed in a specialized holder (like equipment slots).

Group Options Settings

  • Options SO: Defines the context menu options that appear when players right-click on the item. Use this for actions like "Use", "Drop", or custom functions.

Next Steps

Once you've configured your item, you can:

  • Create more items to populate your inventory
  • Set up container items that can hold other items
  • Configure holders to display your items in the UI
  • Implement scripts to add and remove items from the inventory programmatically

With properly configured items, your inventory system will provide players with a rich and intuitive interface for managing their game assets.

On this page