Series
Inventory System
Build an inventory system in Unity: items as ScriptableObjects, one generic inventory for every kind of item and a UI Toolkit bar that keeps up with it.
Intermediate
Two parts. The first builds the items and a generic inventory that stacks them, and tries it out with pickups and a crafting recipe. The second shows the inventory in a bar at the bottom of the screen with UI Toolkit, on Unity 6.6 with a Panel Renderer and on Unity 6.3 LTS with a UI Document.
Quest line
- Part 1: Items and the InventoryBuild the data side of an inventory in Unity: items as ScriptableObjects, stacks with an amount and one generic inventory class for every kind of item, tried out with pickups and a recipe.50 min
- Part 2: An Inventory Bar With UI ToolkitShow the inventory from part 1 in a bar at the bottom of the screen with UI Toolkit: UXML for the layout, USS for the look and one generic C# class that keeps both inventories up to date.30 min