
Inventory System
Team Size
1
Engine
Unity
Tools Used
Git
Visual Studio
OpenGL
Languages
C#
Duration
2 Days
Overview
An inventory system I made for Echoes of Deepcrest, it is not the actual inventory system I'm using but a simplified and more general version of it that I refactored and published on itch.io to provide a solid and easy to expand foundation for any inventory system with equip system.
The system follows a Model-View-Controller pattern, with the model consisting of an InventorySO, which is a scriptable object (the actual inventory containing a list of ItemSOs), and the InventoryService, which manages its contents.
The view, on the other hand, consists of an UIInventoryPage that manages the UI and keeps it up to date.
Finally, the controller is responsible for keeping the two parts in sync, handling requests made to the inventory.
