PROPER Way to Inventory in Unity with Scriptable Objects! #1 - Getting Started

  Рет қаралды 33,820

ErenCode

ErenCode

Күн бұрын

Пікірлер
@odriden1696
@odriden1696 Жыл бұрын
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!
@Munsonplayz
@Munsonplayz Жыл бұрын
Even now in 2023 when Unity may seem hard, this helps me out so so so much and I'm glad I stumbled upon your channel. Thank You So Much Eren!
@baguette1014
@baguette1014 Жыл бұрын
Holy Moley, even though this is the first video , this has been the most informative video I have watched in a while.
@tomoyaokazaki2138
@tomoyaokazaki2138 8 ай бұрын
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!
@NightRunStudio
@NightRunStudio 2 жыл бұрын
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!
@ErenCode
@ErenCode 2 жыл бұрын
Glad it was helpful! :D
@topher-two-four
@topher-two-four 6 ай бұрын
Your explanations are very helpful, and your humor is amazing. Thank you for this tutorial series!
@klipseracer
@klipseracer Жыл бұрын
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.
@LostGameDev
@LostGameDev Жыл бұрын
This is so well put together and explained!
@petermoss7387
@petermoss7387 2 жыл бұрын
Why doesn’t this have more views this is great
@ReykPlay
@ReykPlay 3 жыл бұрын
great video, continue with this series I will look forward to...
@ErenCode
@ErenCode 3 жыл бұрын
More to come!
@bramwolters1393
@bramwolters1393 7 ай бұрын
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
@trbrynee
@trbrynee 2 жыл бұрын
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
@MrbeanGaming
@MrbeanGaming 2 жыл бұрын
Just had to read up on why you did what you did after watching, but then it made sense. so nice vid heh
@ErenCode
@ErenCode 2 жыл бұрын
appreciate it! :D
@akhilldhilipkumarkalaiyara1601
@akhilldhilipkumarkalaiyara1601 10 ай бұрын
Due to the way the classes work, could you make a armor class, and make a seperate armor "inventory", and make it only accept armorclasses?
@marcomauri9673
@marcomauri9673 2 жыл бұрын
On 8:49 you can simply press "Alt+enter" and it will autoComplete what is missing! :)
@ErenCode
@ErenCode 2 жыл бұрын
I try to minimise the use of shortcuts in tutorials to make it easier to follow along! :D
@Sovereing2027
@Sovereing2027 7 ай бұрын
"Quack!?" The best part.
@_buffer
@_buffer 3 жыл бұрын
YES!
@ImBoyCryWolf
@ImBoyCryWolf Жыл бұрын
Hey, how do the "GetEtc { return this;}" functions get implemented? So far I don't understand the necessity of that function yet!
@ROCKSMASHER
@ROCKSMASHER 2 ай бұрын
This is helpful thanks
@rediculai2584
@rediculai2584 2 жыл бұрын
can u explain what 10:45 - 11:30 does im not use to all these words thrown at me at once
@cast5439
@cast5439 Жыл бұрын
hey i don't get any of the errors your talking about ? is that good.
@5of
@5of 2 ай бұрын
is this system have save?
@ErenCode
@ErenCode 2 ай бұрын
Currently no, but it should work with the save system I have a separate video on!
@5of
@5of 2 ай бұрын
@@ErenCode Can you make a video explaining how to add a save system? It will be a treasure for the developers and will make the series perfect Thank you for your help!🤍
@mesutyavuzx
@mesutyavuzx 3 жыл бұрын
Eren bey çok akıcı İngilizce konuşuyorsunuz ve eğitici videolarınız çok iyi. Başarılarınızın devamını dilerim, takipteyiz. 🙏
@ErenCode
@ErenCode 3 жыл бұрын
Tessekurler! Ben Avustralya da dogudum ve orada yasiyorum, o yuzden ingilizcem daha iyi xD
@mesutyavuzx
@mesutyavuzx 3 жыл бұрын
@@ErenCode Biz Türkiye'de garibanız 😂
@mesutyavuzx
@mesutyavuzx 3 жыл бұрын
@@ErenCode Lütfen Envanter sisteminin Save ve Load olayını kesinlikle yapın. Birçok tutorial'da bu yok. 🙏
@ErenCode
@ErenCode 3 жыл бұрын
@@mesutyavuzx olur!
@moritzjantzen8612
@moritzjantzen8612 2 жыл бұрын
how can i change the duability ore level in the text?
@ErenCode
@ErenCode 2 жыл бұрын
Not sure I fully understand your question, could you explain in a little more detail? :D
@moritzjantzen8612
@moritzjantzen8612 2 жыл бұрын
@@ErenCode I want to know how to e.g. on a pickaxe, the durability per hit is reduced by 1
@moritzjantzen8612
@moritzjantzen8612 2 жыл бұрын
@@ErenCode or another example. If someone wants to enter a name for his old ones, for example, he wants to change the name of his captive animal
@ErenCode
@ErenCode 2 жыл бұрын
@@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
@moritzjantzen8612
@moritzjantzen8612 2 жыл бұрын
@@ErenCode Ah ok Thanks
@ВасилийМигулин-т1й
@ВасилийМигулин-т1й 2 жыл бұрын
Equipment system and buff stats?
@nullname68
@nullname68 3 жыл бұрын
Thanks
@khaelus_dev
@khaelus_dev Жыл бұрын
why you dont use IBeginDragHandler, IDragHandler, IEndDragHandler in your tutorial?
@ErenCode
@ErenCode Жыл бұрын
there's always a better implementation out there! Feel free to use it in your own implementation :D
@gameDev_Pat
@gameDev_Pat 2 жыл бұрын
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.
@ErenCode
@ErenCode 2 жыл бұрын
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
@gameDev_Pat
@gameDev_Pat 2 жыл бұрын
@@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!
@codered_dev2
@codered_dev2 2 жыл бұрын
continue this series
@ErenCode
@ErenCode 2 жыл бұрын
its not over! :D
@sanamoawed9522
@sanamoawed9522 3 жыл бұрын
Ui toolkit tutorial?
@tobiasveith4838
@tobiasveith4838 3 жыл бұрын
I would appreciate a video about mob spawning / ai. Or a water tutorial
@ErenCode
@ErenCode 3 жыл бұрын
Coming soon!
@obuqwe
@obuqwe 2 жыл бұрын
uh yeah ive got 60 errors in doing something wrong help
@Panopticon207
@Panopticon207 2 жыл бұрын
thx
@Goeki_4
@Goeki_4 2 жыл бұрын
bro ur tutorials are very nice and i really enjoyed it. But be more confident :D
@ErenCode
@ErenCode 2 жыл бұрын
Thanks! :D I will try my best xD
@LearnWithArjun
@LearnWithArjun 2 жыл бұрын
my dumb mind forgot to sub lol
@ErenCode
@ErenCode 2 жыл бұрын
appreciate the support! :D
@noniceq2096
@noniceq2096 7 ай бұрын
28.04.2024 work
@wtbudgie
@wtbudgie 3 жыл бұрын
:0 :0 :0 :0
The Power of Scriptable Objects as Middle-Men
17:41
samyam
Рет қаралды 131 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Unity INVENTORY: A Definitive Tutorial
35:21
Coco Code
Рет қаралды 125 М.
Creating An Inventory System in Unity
11:03
Game Dev Guide
Рет қаралды 184 М.
Unity3D - Scriptable Object Inventory System | Part 1
31:31
Scriptable Objects: What are they? How do you use them?
10:38
The MOST WANTED Unity Feature is FINALLY here!
12:15
Code Monkey
Рет қаралды 52 М.
SAVE & LOAD SYSTEM in Unity
18:20
Brackeys
Рет қаралды 1,1 МЛН
3 Interesting Ways Scriptable Objects can fix YOUR Unity3d project now!
24:29
Jason Weimann (GameDev)
Рет қаралды 87 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН