Skip to content

A grid-style inventory management UI which includes a scrollable, dynamically populated inventory with support for moving/rearranging items in the inventory.

License

Notifications You must be signed in to change notification settings

NovaUI-Unity/GridInventorySample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Grid Inventory Sample

A grid-style inventory management UI which includes a scrollable, dynamically populated inventory with support for moving/rearranging items in the inventory.

Inventory.mp4

Tutorial

For an end-to-end walk-through of building out this sample, see the following video:

InventoryTutorial

Setup

This sample does not include Nova, which must be imported before the sample can be used. After cloning the repo:

  1. Open the project in Unity. The project will have errors due to the missing Nova assets, so when prompted by Unity either open the project in Safe Mode or select Ignore.
  2. Import the Nova asset into the project via the Package Manager.
    • When selecting the files to import, be sure to deselect the Nova settings (Nova/Resources/NovaSettings.asset) as they are already included and configured for the sample.

Script Highlights

  • InventoryPanel: The component responsible for binding data sources to the character/armory grids and handling user input events. This is the root level script which handles most of the complexity and is a good starting point for investigating the sample's functionality further.
  • InventoryItemVisuals: The ItemVisuals used to visually represent an interactable item in the grid.
  • CountSelector: The component which performs the functionality of the right-click and drag count selection.

Scenes

  • Scenes/Inventory: PC/Mouse
  • Scenes/InventoryXR: XR (controllers)
    • Tested on Oculus Quest 2

Attributions

About

A grid-style inventory management UI which includes a scrollable, dynamically populated inventory with support for moving/rearranging items in the inventory.

Resources

License

Stars

Watchers

Forks