Sitemap
Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Press enter or click to view image in full size

Setting up an Inventory System with Scriptable Objects in Unity

8 min readOct 4, 2025

--

Letting the player gather inventory throughout a game is commonplace these days, so let’s take a look at one way to set up an inventory system. I know this system could be more generic, but I think it communicates an idea on how to approach inventory in Unity with the help of Scriptable Objects. Let’s go!

I’m just prototyping here, so this Health Potion is represented by a blue cube primitive. The Collectable script has a reference to an Item, which is a Scriptable Object.

Press enter or click to view image in full size

Here we have an Ammo pickup using the same Collectable script, only with a different Scriptable Object assigned to the Item slot.

Press enter or click to view image in full size

Finally, this cube represents a Keycard pickup, which can be used to open a specific door.

Press enter or click to view image in full size

--

--

Nerd For Tech
Nerd For Tech

Published in Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Jared Amlin
Jared Amlin

Written by Jared Amlin

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.

Responses (2)