Item View
Create an Item View prefab for an Inventory slot, Equipment, shop row or Item Description. The surrounding Item View Slot supplies input and interaction; modules draw the Item and visual state.
Create the prefab
Use the selected Inventory System Database, Canvas Managers and a duplicated project schema from UI Designer. Spawn In Scene supplies the starting UI. Prepare a Bag grid or other container and Items with the exact Attributes and types the View will read, such as Icon.
- Open Tools > Opsive > Ultimate Inventory System > UI Designer > Item View > Create.
- Choose Item View Preset: For Grid is the default. For List, For Shop, For Item Shape, For Ingredient and For Inventory Monitor use the corresponding schema prefab.
- Set Parent Transform when needed and create the View from the duplicated schema.
- Select it in Edit. Add/remove ItemView Modules and assign each module’s UI references, Attribute names and types.
- Save a project-owned prefab for the Category Item View Set. Assign Target Graphic for slot transitions and Canvas Group for whole-View hiding.
The runtime Item View guide lists module fields/defaults, category mapping and API behavior. The shared Views guide covers drawers and ownership.
Choose presentation modules
| Outcome | Module/setup |
|---|---|
| Icon, name and amount | Icon Item View, Name Item View, Amount Item View with their Image/Text references; Icon reads the Icon Attribute. |
| Selection | Select Image View, driven by the surrounding slot. |
| Equipped marker | Equipped Select Item View or Equipped Item View. A boolean IsEquipped Attribute takes priority over Equipped Collection ID; preserve the source collection in ItemInfo for the fallback. |
| Integer Attribute | Int Attribute Item View with the exact Attribute name, such as Attack. |
| Socketed/contained icons | Item Slots Item View reads Slots ItemAmounts and each nested Item’s Icon; provide enough Icon references for the slots. |
| Multi-cell Item | Item Shape Item View and the compatible Item Shape selection/drop/placement modules. |
| Use cooldown | Cooldown Item View connected to the compatible Item Action workflow. |
Keep a compact grid View readable at its smallest size; a shop can use a wider prefab and apply contextual pricing after base drawing. The shop remains responsible for processed prices.
Compact slot

Category-specific grid

Shop row

Connect the category set and drawer
Create Ultimate Inventory System > UI > Category Item View Set from the asset creation menu. Assign Empty Item View and map All to a common prefab. Add Weapon or Consumable mappings only when their layout differs. The most specific compatible mapping wins; verify deliberately competing mappings across incomparable inherited categories.
Assign the set to the intended Item View Drawer. Enable Use View Slot for slot-based UI and match its Content to the Item View Slots Container’s Content. Keep click, selection and drag ownership on the parent slot.
| Change scope | Edit |
|---|---|
| One panel instance | Generated scene/prefab instance. |
| All users of a View | Project-owned Item View prefab. |
| Future generated UI | Corresponding prefab in the duplicated schema. |
Retain package/demo templates and check every consumer after modifying a shared prefab. Use separate context-specific prefabs where layouts differ.
Check the result
In Play Mode, open Bag with Health Potion, Iron Sword and Fire Wand. Their icons, names and category layouts should match. Move selection using supported input methods; one slot should show the selected state. Increase the potion stack and then empty/reuse the slot; amount, icon, name and selection should update and clear.
Equip Iron Sword and check its equipped marker. When IsEquipped is present, update it with the equipment workflow; otherwise check the bound source collection. Compare shared prefabs in Bag, Equipment, hotbar, shop and crafting layouts. For Item Shape Grid, drag the weapon and confirm the foreground covers the intended cells while the background slots retain interaction.
Custom modules inherit from ItemViewModule, or a compatible general ViewModule. After compilation, eligible types appear in the editor’s module dropdown. Implement both value updates and clearing so reused Views replace all previous state. See UI customization for the wider prefab workflow.