Inventory System

Summary

A grid based inventory system that works as an encapsulated component and can be attached to any object.

Technologies used

  • Unreal Engine 5
    • Save Game Object
    • Blueprints
    • UMG
  • C++

Features

World items: items that can be placed in the world during runtime by the player or development time by the designers. These items can be picked up and stored in the player’s inventory.

Drag and drop: items can be moved around by dragging a tile and dropping it onto another tile.

Inventory exchange: it’s possible to display multiple inventories at the same time and move items between them.

Looting: there’s a looting/scavenging interaction implemented which was inspired by the Fallout games where a loot container can have a few items stored in them and pressing a button will transfer those items into the player’s inventory.

Item stacking: inventory slots store quantity information, allowing the same type of items to be stacked.

Item swapping: swapping item positions by dragging an item onto a different type of item.

Saving and loading: Inventories and the world state can be saved into a save slot and loaded back in on demand.

Showcase

Inventory System Demonstration on YouTube