Inventory, Items and Equipment: is there a good way to make them?

My question might not be very appealing, but it’s quite simple:

Is there a good/easy way in Unity to make an expendable item class. Say I want to make a TON of different items/equipment, with specific stats and sprites.

I’ve considered ScriptableObjects, because they allow me to specify some values and a sprite too, but I’m afraid it might get too heavy. Also thought about XML/JSON, but I’m not sure about that either.

I know there’s not a ‘general good way’ to do this, but I was just eager to learn more about this subject.

Can anyone help? Thanks in advance!

Don’t be afraid of ScriptableObject-based inventories. The benefits outweigh any perceived drawbacks, in my opinion, but the list in this answer shows some pros and cons to help you decide. There should be no worse performance, as they’re just classes which don’t get added to the scene hierarchy. Keep them in a dictionary for quick lookup, and they shouldn’t feel heavy.

Brackeys made a free Inventory System within the Asset Store of Unity, If your game is Singleplayer, That is the perfect result for you. If you have any more questions, Feel free to ask.

Thanks!

Try our free asset Diabolic RPG Inventory - Free Unity Asset Store - The Best Assets for Game Making