Bag UI¶
The Bag UI is the root component for any UI prefab that displays information about a Bag. There are two types of Bag UI components, which depend on the type of Bag used:
- Bag List UI: Used for list-like Bags
- Bag Grid UI: Used for grid-like Bags
Lists vs Grids
This documentation focuses on Bags with a List-type, as they are most commonly used. The use of a Grid-type requires a deeper understanding of how each UI component works, but the concepts and components used are mostly the same.

Default Bag is an optional reference to the Bag displayed by this UI. When left empty (the default value), the Bag is assigned when the UI is opened, such as when using the Open Bag UI instruction.
Prefab Cell is a prefab game object with a Bag Cell UI component. This component is automatically instantiated and updated by its parent, for each Item in the Bag displayed.
Filter by Parent is an optional Item-type filter. If none is provided, it will display all Items of all types. This is particularly useful when creating tabs or sections.
Content is the parent game object where all prefab cells will be instantiated - One for each Item in the Bag.
Hide Equipped (only available in the Bag List UI) hides the Items that are currently equipped.
Can Drop Outside determines whether an Item can be dragged outside of the UI canvas to drop it into the scene world.
Max Drop Distance determines the maximum distance that an Item can be dropped from the Bag object.
Drop Amount
Whether a dropped Item removes the whole stack of objects or just the top-most one is not set in this component. It can be changed at any time using the Set Drop Amount instruction, which can be linked to a UI control such as a toggle or a key press.
Dropping Items
Note that only Items that have a Prefab object in their Item definition can be dropped.
Components¶
There are a few extra components that can synchronize a Bag's information with UI controls, which can either be linked to a Bag, or to the Bag linked to a Bag List/Grid UI component.
Cell UI¶
This component is automatically set up and refreshed by its Bag List UI or Bag Grid UI parent component.

The Cell Info section contains an optional collection of UI control fields that can be plugged in order to be updated when the Item(s) associated with this inventory cell change.
Graphic component required
This component requires a Graphic component (either an Image or a Text) in order to receive input events, such as clicks and drags.
The Merchant Info field is optional and only useful if the Bag Cell UI component is part of a Merchant UI component.
The Can Drag toggle determines whether an Item can be dragged and dropped.
On Drop defines the behavior when another Item cell is dropped onto this one: Nothing, Move (moves the dropped Item to this cell) or Move Combine (first tries to combine both Items and, if they can't be combined, moves the dropped Item to this cell).
On Choose defines the behavior when the cell is chosen (clicked or submitted). It can do nothing, Select the cell, Use the Item, Dismantle it (with a Dismantle Chance to recover each ingredient), Send To Bag (transferring it to another Bag, such as the Player's), Equip or Unequip it, or Split Stack.
Selected Cell UI, Socket UI and Property UI
When a Bag Cell UI is selected, any Selected Cell UI component will be refreshed with the information of the currently selected cell. This allows you to display information about a particular cell outside from the cell itself.
In both Bag Cell UI and Selected Cell UI components, one can create a prefab with a Socket UI/Property UI component that displays the current sockets/properties.
Equip UI¶
This component is used for equipping items and assigning consumables to hotbars.

The Bag and Equipment fields determine the targeted Bag and the equipment slot this refers to.
There are two main sections:
- Base UI: Allows you to display a collection of optional controls that reference the base-type Item
- Equipped UI: Allows you to display a collection of optional controls that reference the currently equipped Item (if there is one).
The rest of the fields define the behavior when the Bag Equip UI is interacted with: On Click and On Submit can do nothing, Unequip, Use or Dismantle the equipped Item, while On Drop allows you to Equip an Item that is dropped onto it.
Wealth UI¶
The Bag Wealth UI component is used to display the selected Currency and how much of it the Bag carries.

This component requires a prefab that represents each coin's Currency value, and must contain the Coin UI component.
Weight UI¶
The Bag Weight UI component displays the current and max weight of the selected Bag.
