Unity3D - Scriptable Object Inventory System | Part 1

  Рет қаралды 323,299

Coding With Unity

Coding With Unity

4 жыл бұрын

In this video we will be using scriptable objects to make an Inventory System for #unity3D
Source Code: github.com/sniffle6/Scriptabl...
If you like this channel, or just Unity in general, consider joining my Discord at: / discord
********************************************************************
● Support me with Brave: brave.com/cod828
♥ Subscribe: bit.ly/2FRWgOi
● Facebook: bit.ly/2DhBC6I
● Twitter: / indie_unleashed
********************************************************************
● Make a Grid with a 1 dimensional array: bit.ly/2sRTpfL
● How to make Snake in Unity Tiny: bit.ly/2UmJHhe
● Climbing System Show off: bit.ly/2FPurq1
********************************************************************

Пікірлер: 775
@botcomborderreaching3518
@botcomborderreaching3518 6 ай бұрын
For those having trouble initializing the ScriptableObject. I had a problem when I started creating the FoodObject everything was fine but when I clicked the values ​​reset. It was because I used the Awake function. When you click, the object is reset because unity calls the Reset() function. So if you want to fix overwriting values, use Reset() instead of Awake(). This worked for me.
@dvi6173
@dvi6173 5 ай бұрын
THANK U SO MUCH 🎉❤ i was struggling for like 20 minutes using OnEnable and everything. This worked amazingly
@K0s1166
@K0s1166 3 жыл бұрын
One of the best tutorials I have seen on youtube. Showing what the end result will be, straight to the point and explained well. Exactly what I was looking for. Earned a sub.
@gameboycolor47
@gameboycolor47 3 жыл бұрын
This is hands down one of the best tutorials I've seen on this. Simple straight to the point organized (strangely rare in these Unity tutorials) and from what I've gathered so far extremely flexible. I don't even plan on making an RPG I wanted something for survival horror game and this is perfect.
@nv7287
@nv7287 4 жыл бұрын
This is such a great tutorial series/channel, especially that you don't take shortcuts but layer it logically piece by piece, taking the time to explain how it all fits together along with ideas on how it could be extended :) Exciting!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Glad you enjoy it! :D
@Mr_Wiley
@Mr_Wiley 4 жыл бұрын
I'm half through this and this is the first Unity content creator I feel obligated to Subscribe to. I'm so impressed at your delivery of information. I've done non stop tutorial/lesson surfing the past couple weeks and this one casually covers many of those I've seen with so much ease... and more. Half way, easy subscribe. I'm just hoping when I click your youtube page I see even more content! Big thank you.
@DirtyChance
@DirtyChance 3 жыл бұрын
Just chiming in to say this was the most in depth tutorial I have found on implementing this and it really helped me a ton. I really appreciate getting right to the meat of how to accomplish this, without spending a lot of time talking about useless bits.
@user-jf2rj3zf5v
@user-jf2rj3zf5v 3 жыл бұрын
If you've stumbled across this video randomly while trying to find a good tutorial on inventory system in unity, you've found what you need. It's a little complicated at first, and there are a lot of rewriting that will be done in the next videos, but it worth it in a long run and you actually learn something following these videos. So thanks for these videos, i hope you'll be able to make new videos again soon!
@Sam4Progress
@Sam4Progress 4 ай бұрын
Does he eventually address the limitations of enums? Not that I am complaining, this is good information, but the enums is a limitation for creating a dynamic "item" system.
@KekoBit
@KekoBit 14 күн бұрын
Just make sure you always pick the right names for the fields and never change them again, because renaming a field inside of a SO will cause you to lose all your data. That's one nasty thing they rarely mention about SO. You rename a field, and your data is permanently gone (unless you have a copy, of course). So you need to use the horribly clumsy way with [FormerlySerializedAs] attribute, which is reminiscent of programming in 1970'es. Instead of adding a rename option directly n the inspector.
@LesusGames
@LesusGames 4 жыл бұрын
Not only has this helped me plan out my inventory system, it's helped me solve another little headache I've been having which is how to store images in scriptable objects I need to serialize! Kicking myself I didn't think to just use prefabs... So simple! Thank you!
@beri4138
@beri4138 4 жыл бұрын
I watched so many tutorials on this subject. The one by Brackeys, Sykoo, Code Monkey, Blackthornprod... This one is by far the best inventory tutorial, and the only one that I fully understood.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
thanks a lot! I really appreciate the kind words :) also im glad you were able to understand it!
@rupeshpandey6603
@rupeshpandey6603 4 жыл бұрын
@@CodingWithUnity Same with me, Their tutorial were not bad but yours were exactly what I needed. Thanks for much for doing this.
@idkidk9204
@idkidk9204 3 жыл бұрын
same :D
@_creare_2742
@_creare_2742 3 жыл бұрын
Same :)
@xkittencatx
@xkittencatx 3 жыл бұрын
Honestly, same here! No hate to the others, but I was able to absorb this tutorial so much better.
@DoubleOBond
@DoubleOBond 3 жыл бұрын
This is exactly what I needed to get into developing a game. Thank you for your detailed explanation that is clear yet short and easy to digest.
@SilverHaze5X
@SilverHaze5X 4 жыл бұрын
Ok, this was really a good tutorial. Complete, comprehensive, going strait to the point, and no BS. Solid work!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Much appreciated!
@neffthepanda
@neffthepanda Жыл бұрын
Great video! I'm trying to make my own 2D game right now and couldn't figure out the inventory part. This has helped me so much and is way better than any other inventory tutorial I've found on KZfaq before. Everyone else's is so complicated and they do not explain the process as well as you do. Thank you!!!! Will definitely be watching the rest of this series. Even though it is much longer than the rest of similar series, it is worth it 100%.
@boringNW
@boringNW 3 жыл бұрын
Oh my god this is amazing. This is the thing I needed to get over the hurdle that's stopped me so many times before. Thank you!
@vitriolicAmaranth
@vitriolicAmaranth 10 ай бұрын
Thank you for this. As it turns out, what I needed to solve the issue I was stuck on in trying to make an inventory system from scratch myself was constructors, which I somehow didn't encounter or learn about until now. I don't think you really explained what that was in the video and at first I didn't understand it, but I looked up "constructor" in the C# docs and now it makes perfect sense and makes this whole process much, much easier.
@isaaccunningham59
@isaaccunningham59 3 жыл бұрын
You deserve more subscribers, this is amazing. I couldn't find anything I understood about an inventory system until I came across this. Thank you so much, you've helped so many people, what your doing is great! Keep it up
@thomasreed2883
@thomasreed2883 4 жыл бұрын
Thanks a ton for this tutorial had to search for several days to find one this good, found most others confusing and counter intuitive without the scriptable objects.
@Karasu416
@Karasu416 4 жыл бұрын
I went into this extremely pessimistic. There are some very clunky and outdated tutorials on making Inventories and Interaction systems on youtube, but i had to pause this video despite being only 15 minutes in. In these first 15 minutes alone I've learned more than the hours of clunky, messy outdated tutorials i've watched on the topic in the last few days. Thank you so much! Please keep doing what you're doing and making awesome tutorials! I feel by following along I'm actually learning so much more about unity's systems that I didn't know before or how to make use of it better. Thanks a lot! Instant sub!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Thanks alot for the feedback :) Its comments like this that makes the content worth putting out
@AGBWBREH
@AGBWBREH 4 жыл бұрын
You've been freed from tutorial purgatory! Congratulations!
@Voidyn
@Voidyn 4 жыл бұрын
Can you do this in 2D?
@Nenepoo
@Nenepoo 3 жыл бұрын
you deserve more views man! this help me so much. After watching Brackeys, i still dont understand the grasp of inventory system but the way you explain it, i understand it right away!
@kippenegg
@kippenegg 4 жыл бұрын
Much more elegant than my solution would have been and you taught me about ScriptableObjects, great tutorial.
@marcelosommerlatte2238
@marcelosommerlatte2238 4 ай бұрын
I was having issues with this and spent an entire day figuring out what was wrong. Perhaps Unity has updated something since the video upload. Unity automatically resets the created object after its creation. To manage this, use the Reset() method instead of Awake() to ensure proper initialization and prevent unintended resets. By doing so, each time you reset this object, it will utilize the default values configured in your script.
@NoodleFoxYT
@NoodleFoxYT Ай бұрын
tbanks ;-;
@thoringard3811
@thoringard3811 4 жыл бұрын
Cant thank you enough for this video. I have been searching for several days for something to explain how to create an inventory system with scriptable objects and you are the only person who has been able to explain this clearly. This is exactly what I needed! Thanks for this and I hope you continue to make content.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Really appreciate the comment!
@serwetkowywritter1
@serwetkowywritter1 4 жыл бұрын
Amazing tutorial... currently at part 2. It perfectly fits any kind of game you could possibly think of with only minor adjustments. And I like how the code and solutions are constantly changing just as in real-life coding. Thanks to that, it tells a lot about a developer's mindset and teaches different approaches. I was pretty much resigned after watching a few other lazy tutorials and now I'm actually ready to progress with other aspects of my game. 10/10 would (and will) watch again.
@serwetkowywritter1
@serwetkowywritter1 4 жыл бұрын
Oh and now you do have the ads, gz!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Thats awesome to hear!
@RolandOldengarm
@RolandOldengarm 3 жыл бұрын
This tutorial is exactly what I was looking for to create my inventory system. Thank you!
@NETRUNNER_03
@NETRUNNER_03 4 жыл бұрын
Brilliant, straight to the point and no nonsense. Thank you so much and keep up the great work dude. I greatly appreciate this video. Liked and subbed!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
thanks a lot!
@KeithK469
@KeithK469 3 жыл бұрын
Far and away the best inventory tut I have watched. And this is Vid 1!! Thank you for putting this together!
@jimbeanbragger9209
@jimbeanbragger9209 3 жыл бұрын
That tutorial was a rollercoaster ride. Glad I got through it with only a few mistakes and ended up with everything working by the end. Thanks for your hard work c:
@CodingWithUnity
@CodingWithUnity 3 жыл бұрын
I'm glad you managed to get it working!! Great work c:
@TheAtticus82
@TheAtticus82 2 ай бұрын
Here 4 years after upload and this tutorial is still amazing. Thank you!
@yoelmartherus980
@yoelmartherus980 4 жыл бұрын
First inventory system tutorial I watched that actually seems practical. Thanks!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Great to hear!
@Micscope
@Micscope 3 жыл бұрын
Best inventory tutorial series on the whole internet right now. Stick with it 'till the end and you'll learn quite a lot about game architecture. Then fiddle with it around a little bit and you can apply these concept to a lot of system, like shop system, skill system, etc.
@tidragolol4438
@tidragolol4438 4 жыл бұрын
This series looks great it's worth an Abo :D keep going
@connormyers322
@connormyers322 4 жыл бұрын
Really helpful, thanks I've learned a lot, I watched code monkey's and implemented his, and I couldn't keep up with all the non-static references, I had to rework the whole thing. Best inventory tutorial I have found!
@GaamerGuyys
@GaamerGuyys Жыл бұрын
Thank you so much for this tutorial! Every other tutorial I could find was both very complicated and didn't have a very good result. But this it to the point, easy to understand and the result is so worth it!
@CodingWithUnity
@CodingWithUnity Жыл бұрын
Glad it helped you!
@diegoalejandromartinezespi6672
@diegoalejandromartinezespi6672 2 жыл бұрын
It is surprising how well you explain and from scratch to avoid getting lost.
@bendluhy1312
@bendluhy1312 3 жыл бұрын
Perfect video, i had no idea where to start with an inventory. This not only helped with me getting started but also helped so I can expand and customize this on my own.
@metaDeWeta
@metaDeWeta 3 жыл бұрын
This is absolutely fantastic, love the whole series. You are a true hero, thanks a thousand million
@Ultratermin8or
@Ultratermin8or 2 жыл бұрын
By far the best tutorial. First video is better than anything else out there. Can't wait to watch full series
@AJMarraffa
@AJMarraffa 2 жыл бұрын
There's a lot of valuable information here, thank you so much! I didn't really understand how inventory systems worked before but it makes a lot more sense now.
@craftalesinc8131
@craftalesinc8131 Жыл бұрын
WOW YOU ARE SO UNDERRATED. Best tutorial that I have seen! It is so well explained. I am a beginner at coding, but you were so clear that I actually felt like I was learning + I was able to add some stuff that made it even better. Thank you so much!
@liamsnaith6100
@liamsnaith6100 4 жыл бұрын
I have to echo what some others have said and agree that your inventory system video is way easier to follow than some others. I've used this with a grid layout in Unity2D and it works perfectly. Thank you!
@Sarishie
@Sarishie Жыл бұрын
its been 3 years but it helps me a lot on making inventory, thanks coding with unity, i wish you all the dreams that you had become true, thanks love you
@CodingWithUnity
@CodingWithUnity Жыл бұрын
I wish the same for you. Glad the content has been helpful for you
@HadiExtreme
@HadiExtreme 4 жыл бұрын
Those RS references tho xD Scriptable objects are so powerful, I keep finding new uses for them. Great tutorial!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Glad you like them!
@Rioni
@Rioni 4 жыл бұрын
Awesome tutorial, I've never thought using scriptable objects this way. I'll watch it again tomorrow because there is a lot of content here to learn
@HappyBell92
@HappyBell92 Жыл бұрын
This tutorial was awesome, I learned a lot watching this. This is precisely the inventory system I wanted for my side project game.
@lando6583
@lando6583 4 жыл бұрын
This a very clear, precise, and intuitive implementation of scriptable objects! Thank you
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
no problem! Thank you as well!
@justmix106
@justmix106 3 жыл бұрын
i love you so much. every other inventory tutorial on youtube is no where near as good as this
@teamcw5204
@teamcw5204 3 жыл бұрын
This is a great lesson! Really easy to follow, which makes the concepts easier to learn. I was stuck on this, and now I can't wait to move forward. You definitely earned a sub from me! Cheers!
@therendeath4886
@therendeath4886 2 жыл бұрын
Absolutely amazing, and a entire playlist?! even better
@kau3239
@kau3239 4 жыл бұрын
Dude great stuff, the other tutorials out there weren't as concise and well put together as yours.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Glad you like it!
@LaurenceCreates
@LaurenceCreates 4 жыл бұрын
I have used scriptable objects before but i have never really thought about using it in a multiplayer game. so this video has given me plenty of ideas. thanks mate :D
@DrFross09
@DrFross09 3 жыл бұрын
I finished the entire series a few weeks ago, and I came back to the first video, where my comment will have the most impact, to say, THIS TUTORIAL IS WORTH EVERY SECOND. My game received a huge upgrade from what I learned in 9 parts. if you've been searching for an inventory tutorial video this is THE ONE. (didn't mean to sound like a TV salesman, but i just got this thing to work with the gamepad, I no longer have to touch the mouse at all, and I'm through the roof right now)
@CodingWithUnity
@CodingWithUnity 3 жыл бұрын
That's awesome you got it working with a gamepad! Super cool Also thanks a lot for the kind words
@kdawgfsho04
@kdawgfsho04 3 жыл бұрын
im making a 2d game will this inventory work for me?
@DrFross09
@DrFross09 2 жыл бұрын
@@kdawgfsho04 Yes Of course
@mysteriz_madi
@mysteriz_madi 2 жыл бұрын
You got it to work with a gamepad! Could you maybe tell me how you did it? I'm hoping to make an inventory that way cause I want my game to have a retro, played on an old Playstation, feel with no mouse.
@DrFross09
@DrFross09 2 жыл бұрын
@@mysteriz_madi it’s been a year so I don’t know exactly what I changed to be able to do that however I do remember that I had to copy most of the mouse code and rewrite it for use with the controller. I’m not exactly an expert with coding, so I think you’ll be able to figure it out, but as of now I’d have to looks through the scripts to find out what I changed. I believe the majority of what I changed is in the userInterface script. Start with changing the click to a button press, you’ll need to make another gameObject variable similar to the one that holds the item when selected with the mouse. All I really did was copy all the input functions and refit them so that they can work with a controller. Recently I managed to break something (after it was working for the better part of a year) and the mouse no longer works properly, which is why I’m not sharing the exact code.
@JesseTheGameDev
@JesseTheGameDev Жыл бұрын
KZfaq really didn't want me to find this video/series. But I finally stumbled upon it after weeks of looking for a inventory/item system video.
@olieolieolieolie1249
@olieolieolieolie1249 2 жыл бұрын
excellent intro to inventory systems… i like the clearness …i am writing my own and this has pointed me to a better workflow. many thx
@infiniteai9768
@infiniteai9768 4 жыл бұрын
Can't believe how much this video accomplishes in 30 minutes. Thank you.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Glad it was helpful!
@victorlapin2080
@victorlapin2080 4 жыл бұрын
Instantly saved the whole playlist for future reference. Great stuff.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Awesome, thank you!
@krazywulf1983
@krazywulf1983 3 жыл бұрын
love this video im so glad i found it.. its exactly what i wanted i just dident know how to put it into code.. thank you mate for the help in my game.. spent a week talking to wife trying to figure out the code then i found this video and it came together perfectly
@subliminalcastillo2126
@subliminalcastillo2126 3 жыл бұрын
I've been looking for a way to make a runescape inventory/banking system and I LEGITIMATELY FIND a tutorial on how to make a runescape inventory/banking system. I have no words to describe how god damn fucking happy this makes me.
@NightmarezTerror
@NightmarezTerror 3 жыл бұрын
Really great tutorial! Everything is explained clearly and this was easy to follow.
@greghaas4433
@greghaas4433 Жыл бұрын
Phenomenal tutorial. optimal pacing and explanation for beginners. Thank you!
@vegazcodez4387
@vegazcodez4387 4 жыл бұрын
Great content and teaching style! Thank you!!!
@JigJason93
@JigJason93 4 жыл бұрын
This is a brilliant tutorial and helps me alot, thank you sir
@jesseweber5601
@jesseweber5601 3 жыл бұрын
I'm only like eight minutes in and I swear to god this is the best unity tutorial on the internet. Not limited to the realm of inventory systems. Just, the best unity guide.
@CodingWithUnity
@CodingWithUnity 2 жыл бұрын
we have the same last name :P
@viridienne9289
@viridienne9289 2 жыл бұрын
Hi, I'm new to your channel. I'm just as same as some people here, I have watched many tutorials about inventory system from Brackeys, Code Monkey ..etc... I'm not new to Unity, but I still cannot fully understand their logic and code. Yours is the most understandable I have met so far. Thank you for your neat explanation, although the grid layout can make the display code cleaner. You have my subscription.
@AwataraGame
@AwataraGame 2 жыл бұрын
This tutorials really help me, I have developed and use your tutorials and apply this to all of my elements!
@crazybobby14
@crazybobby14 2 жыл бұрын
This is the best so far in inventory system. On point and well explained on what each part does. One thing I thought about the inventory part that you showed, was that you could use it like chests or extra bags that you can equip like in Don't Starve. In this video I could understand and expand easily on, where on Code Monkey skips many parts and fast forwards too much where you end up spamming . and , to comprehend whats going on. Plus I hate writing something and then he erases it a few minutes later and writes new stuff like come on... I don't hate his tutorials, is just that those two things gets too irritating after a while.
@exon878
@exon878 3 жыл бұрын
Love the vid. Goes deeply into the code and showed me and my friend new ways of coding and this will fit perfectly in our new game and we well have great use of this in the future. Earned yaself a sub.
@carltonkid7256
@carltonkid7256 4 жыл бұрын
Great tutorial!! thank you for making this, it really helps people like me, and I honestly appreciate this. Keep doing what your doing!
@ashfid8987
@ashfid8987 4 жыл бұрын
Okay, I didn’t know you will post this early. I am so happy! Thanks for this!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
No problem! Hope you like it
@ashfid8987
@ashfid8987 4 жыл бұрын
Coding With Unity Definitely. I know theres few issues on serializing scriptable object for inventory system that have gameObjects. Will you be focusing on saving system down the line? Love the fact you enjoy Runescape.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
Yes ill make a video specifically showing how to serialize, save and load the scriptable objects
@ashfid8987
@ashfid8987 4 жыл бұрын
Coding With Unity Best youtuber right now. No bullshit haha ❤️
@daleprather3026
@daleprather3026 4 жыл бұрын
This is a fantastic video. Best one I could find on KZfaq. Helped a lot. Thank you for sharing! Subscribing for sure and looking forward to more of your videos..
@deadbroadcastpc
@deadbroadcastpc 3 жыл бұрын
Very well done! Appreciate the effort put into this!
@DavelTheAwesomenes
@DavelTheAwesomenes 3 жыл бұрын
Oh my god. Watching this and realizing you can do whole lot of systems using this way of game development. Thank you.
@CodingWithUnity
@CodingWithUnity 3 жыл бұрын
Your welcome, you can check out the open game project unity is doing also. They use SO for their architecture in a lot of places as well
@TiffanyGilley
@TiffanyGilley 2 жыл бұрын
Big thanks for making this. It taught me enough to make my own unique inventory system!
@CodingWithUnity
@CodingWithUnity 2 жыл бұрын
That's wonderful to hear!
@MuftahDev
@MuftahDev 2 жыл бұрын
that's the best tutorial for implementing this system, but I had to use Grid layout group instead of doing it manually and it worked just fine, keep it up
@Stratoscaster
@Stratoscaster 5 ай бұрын
Great tutorial, I know I'm late to the party but instead of setting X_START/Y_START, you can set the anchor of the original prefabs & variant prefabs to top-right in the Inspector. Much faster to do, and then when you create additional variants from the original they will inherit the anchoring.
@harrison298
@harrison298 2 жыл бұрын
Thank you for this series, truly.
@ariyangrami
@ariyangrami 6 ай бұрын
I love that part in the end you said : this is a pretty " BASIC " way :)))))
@qiangpanchen6785
@qiangpanchen6785 2 жыл бұрын
a great tutorial about scriptable objects and invevntory basic structrue , thank you so much!
@simoxeh
@simoxeh 2 жыл бұрын
Great info but definitely taught at a speed that he understands and a lot of different info at once. Definitely good information and I'll likely have to watch a few times to get everything if I don't want to just copy and paste his code and actually understand why he does things
@dinendash1166
@dinendash1166 3 жыл бұрын
I just finished This tutorial and it works exactly like it should. thanks for the info.
@CodingWithUnity
@CodingWithUnity 3 жыл бұрын
You're welcome!
@Jake-xo2fo
@Jake-xo2fo 3 жыл бұрын
You're awesome, that is what I was looking for, thanks!
@hhcdghjjgsdrt235
@hhcdghjjgsdrt235 2 жыл бұрын
Oh boy, the first video that actually helped me to learn inventory system as Im very new to unity and also coding. Thank you. sub++;
@darrenj.griffiths9507
@darrenj.griffiths9507 3 жыл бұрын
Thank you for the video. Really straight forward to follow and understand. And being British, gotta' love that accent. The way you say bones hahaha
@marularch
@marularch 9 ай бұрын
Thanks for the tutorial, it's very helpful for understanding how to use scriptable objects for various cases. Other people already mentioned using a UI grid for layout instead of manually setting where the inventory slot is displayed. Also, creating a method instead of copy-pasting commonly used code is better practice. I used a new method called AddDisplay() and moved the common lines in that one: private void AddDisplay(InventorySlot inv) { var obj = Instantiate(inv.item.prefab, Vector3.zero, Quaternion.identity, transform); obj.GetComponentInChildren().text = inv.amount.ToString("n0"); itemsDisplayed.Add(inv, obj); } Then you can replace those lines with this function as follows: public void CreateDisplay() { for (int i = 0; i < inventory.Container.Count; i++) { AddDisplay(inventory.Container[i]); } } public void UpdateDisplay() { for (int i = 0; i < inventory.Container.Count; i++) { if (itemsDisplayed.ContainsKey(inventory.Container[i])) { itemsDisplayed[inventory.Container[i]].GetComponentInChildren().text = inventory.Container[i].amount.ToString("n0"); } else { AddDisplay(inventory.Container[i]); } } }
@santimen2000
@santimen2000 Жыл бұрын
Awesome tutorial! I prefer a more visual way to set up the items in the UI (Like with an auto arranging grid) but the backend part is great stuff, amazing job!
@wouwou9146
@wouwou9146 3 жыл бұрын
Dude you just saved my game project
@tobyparker911
@tobyparker911 3 жыл бұрын
Thanks for this great tutorial. Liked and Subscribed!
@charatjeeravipoolvarn464
@charatjeeravipoolvarn464 2 жыл бұрын
Thank you so much. You make it clear and easy to understand.
@jeffreydiggs9216
@jeffreydiggs9216 3 жыл бұрын
The cooking game I'm trying to make as my 2nd game ever was already turning into a gigantic mess and I was this close to give up, until I watched your video. THANK YOU SIR !!
@CodingWithUnity
@CodingWithUnity 2 жыл бұрын
Im glad I helped make your project a bit easier
@zahhym
@zahhym 4 жыл бұрын
a life saver, thank you so much
@mattg1345
@mattg1345 4 жыл бұрын
Please continue this series so many inventory tutorial don't go the distance and never get finishes.
@mehmetcancalskan5002
@mehmetcancalskan5002 3 жыл бұрын
Simple is power , thanks for this nice tutorial . I understood every piece of code . =) I can do anything when i understand the logic . thanks again :)
@iggyfer97
@iggyfer97 Жыл бұрын
This was amazing. Thank you!
@VladMGC
@VladMGC 4 жыл бұрын
I learned so much today. Thank you. You are really smart.
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
You are so welcome!
@DrummyMcDrumface
@DrummyMcDrumface 4 жыл бұрын
I can't believe this doesn't have more views. Much more optimized than the leading videos and the pacing is near perfect, was very easy to follow along with. Excellent work man. Would love to see a base building tutorial if possible. Similar to Ark or Conan exiles?
@DrummyMcDrumface
@DrummyMcDrumface 4 жыл бұрын
subscribed, and put the bell on!
@CodingWithUnity
@CodingWithUnity 4 жыл бұрын
thanks a lot! And a base building series would be cool to do, but no promises on if i will be able too
@victor1102
@victor1102 3 жыл бұрын
Thank you sooooooooooooooooooooo much for making this video! So super very helpful! Subbed instantly!
@WegPast
@WegPast 2 жыл бұрын
I like this tutorial a lot, it straight to the point ! Beside that, I have a tip for you all : I've struggle a bit upon the " Destroy(other.gameObject);" because "Destroy" is not immediate and thus, sometimes, my player picked up multiple time the same item before it was actually destroyed. So the simple fix is to add a boolean to your Items.cs script saying either or not it have been picked up or not and test it when picking it up : public void OnTriggerEnter2D(Collider2D collision) { var item = collision.GetComponent(); if (item && !item.haveBeenPickedUp) { inventory.AddItem(item.item, 1); item.haveBeenPickedUp = true; Destroy(collision.gameObject); } }
@soup8249
@soup8249 Жыл бұрын
ive been trying to learn unity all weekend (i started on friday) and ive looked through quite alot of videos and stuff, and this is really top tier man! I love how your explaining what were doing and why so im actually learning and not just copying your answers lol
@marinat.j6167
@marinat.j6167 3 жыл бұрын
amazing! thank you for the hard work
@TheAjaiRaj
@TheAjaiRaj 3 жыл бұрын
Amazing, thanks for this!
@hungrygrimalkin5610
@hungrygrimalkin5610 2 жыл бұрын
This is really a great tutorial, thanks!
@freddy2t
@freddy2t 3 жыл бұрын
This is insanely helpful!
The REAL Three Body Problem in Physics
16:20
Up and Atom
Рет қаралды 124 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 38 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 101 МЛН
The Power of Scriptable Objects as Middle-Men
17:41
samyam
Рет қаралды 119 М.
Evolving AIs - Predator vs Prey, who will win?
12:15
Pezzza's Work
Рет қаралды 2,8 МЛН
Rethink Everything with Scriptable Object VARIABLES
15:28
Magnifying The World's Brightest Flashlight (200,000 Lumens)
8:55
The Action Lab
Рет қаралды 454 М.
Scriptable Objects: What are they? How do you use them?
10:38
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 165 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 516 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 38 МЛН