InventoryScreenShot

Inventory System

This is an inventory system I made in Unity and C# for a school project. I made this system with the help of online tutorials and of course StackOverflow.

Unfortunately I can’t share the entire projects, because I don’t have permission to share the rest of the project since it contains the work of my other team members.

Functionality

This is a system for a basic inventory. You can add items to the inventory, remove items by dragging them outside the inventory UI, you can add an item to the hotbar to use them with the 1, 2 and 3 keys.

Even though the functionality sounds simple, there are a lot of scripts needed to make the entire system work. This entire system uses around 25-30 scripts which include custom Unity events, custom even listeners, scriptable objects for the items and a lot of scripts to make the user able to click and drag items.

UI Art

I wanted to adress the visuals for the UI just a tiny bit. At the moment, the invenotry UI uses basic shapes and colors from Unity.

Even though I used the basic shapes from Unity, it is really easy to implement new UI visuals since I can just change the images in the Unity inspector.

Screenshot from the Unity editor of the inventory
Screenshot from the Unity editor of the destroy confirmation visuals

Reusability

Luckily for me and my future projects, this inventory system is reusable. The only thing that you would need to implement again are scriptable objects for the items and what happens if you use them. But for the rest there is (almost) nothing you have to implement again.

Here you can find the github repo for the source code: https://github.com/JdeHaan2001/InventorySystem