This is one of the best videos on the internet. but i do have 1 issue. this error keeps popping up and i dont know how to fix it: Assets\Inventory\ItemClass.cs(5,23): error CS0263: Partial declarations of 'ItemClass' must not specify different base classes
Hands down the best video I've encountered explaining inventory systems in an understandable way. I keep on watching tutorials and they get overwhelming halfway. The way you break it down and explain it is really helpful!
I've been searching for Inventory Tutorials and none of them have worked. But this one has the same exact outcome for me as it showed in your video. I hope it stays that way for the second half of your video :D gonna watch it now, thank you! And for the record, your choice of coding in the scripts felt a lot more fun than the other tutorials! Keep it up! Simple and fun to play with, and best of all, I had NO issues whatsoever for once!
Love this video! So helpful, with really clear instructions. I love how you explain each line as you go. I've dabbled in Scriptable Objects before, but this is the first time I've really actually understood how they work. Thanks so much!
Hey man I have watched a number of videos and many are overly drawn out. I subscribed to you based on this video to support you, I think you did a good job, straight to the point and I'll be using this. Thanks, keep it up.
followed same exact instructions, getting 17 errors and after creating folder there's no "Item" XD wonder what went wrong (until 15:24) Some aren't recognizable too like: when I call "Sprite" Writing public abstract ToolClass GetTool(); in ItemClass.cs Using Unity 2021.3.13f1
@@moritzjantzen8612 all the data specific to a tool, can be stored on the tool class itself, just make sure you create an instance of that scriptable object in your inventory. In practice its not to hard, a few quick google searches will point you in the right direction once you understand how scriptable objects work. The hard part is gonna be understanding inheritence and virtual classes etc. It can be a bit confusing at first its quite an advanced programming topic but i promise once you get it, you'll realise its actually quite simple :D and as always, the discord server is open if you have any questions or need help! :D
The problem I'm having with using scriptable object for Inventory is that, how do I give items to the user while the game is being played? For example, if a user clears a dungeon and I want to give a random item. But I can't refer to the specific scriptable object. I think I will be able to refer to it if I create some sort of script and attach all scriptable object inside but I don't know if that is the right way to do.
You can create run time instances of scriptable objects with randomised parameter or variables using a constructor. A scriptable object is just like any other class, in fact you also could create a whole scriptable object asset via code if you wanted to as well, scriptable objects have a tonne of functionality and are super expandable. But an alternative to them would be to use json files to define items, either or would work, completely up to you and your work flow! :D
@@ErenCode Oh I did not know that :o, I wasn't able to find and tutorial on youtube for such use yet but maybe I should go to documentation? But anyway thank you!