💬 Add more engagement to your Inventory with this interesting system! ✅ Get the Project Files and Utilities at unitycodemonkey.com/video.php?v=fxaDBE71UHA 🌍 Make a full time living creating games with The Ultimate Game Dev Course bit.ly/theultimategamedevcourse
Seriously, Brackeys and Code Monkey are the kings of Unity. Thank you so much for helping us finding solutions to our problems faster and teaching us new things/concepts.
I used DTInventory from the unity asset store. It's incredible imo. Super easy to implement if you're a decent coder and the creator has included a bunch of methods like add item and search inventory for item that are easy to use.
Check out how Matt from Game Dev Guide handled UI grids and UI line renderer! Implementing that in this would be sweet. He also has a custom grid layout video so you don’t have to use unity’s grid layout component. Tbh it would be really cool to see how you would approach it after seeing his/other youtubers
Code Monkey that's for doing these videos your positive voice is my light in these dark times, I get hurt in work and now I am home, so i have plenty of time to catch up. Looking forward code maybe one day like you. You are really a Master, all the best.
It's taken me a while to get to it, but I have finally started on a shooter game i've been wanting to make for a while. i am going to use a modified version of this system as part of a hybrid inventory system that will contain a general storage area using the tetris system, and special slots on the side for certain items. I think this will be a fun aspect of the game, for the player to manage their inventory. thank you for making the project files available!
Game Development is all about building systems upon systems which is exactly what I did here. I took a Grid System that I built previously and built this Tetris inventory upon it
It would be great to see a version of this with a selection cursor that can be controlled with a controller, and clicking on items gives you a menu for what to do with them
Horrifyingly difficult to use the project files with so many errors and things bundled together. Very sad, but I guess if you wanted to make it accessible you'd make it an asset or package somewhere. Instead we have a barely usable mess of dependencies on random things. Welp
What errors are you seeing? The package shouldn't have any errors. Check the FAQ on the download page, look at what the errors are saying, you're probably missing packages and not any error in the video code.
i'd like it as a proasset but on the condition it had support for sorting as my own implementation of this same idea got stuck on the sorting part. The issue was testing the position so it all fitted. When you had a close to full inventory my implementation fell completely apart. An example of what I was trying to do is the sort function in Kenshi.
I hadn't thought of auto sorting, that could be an interesting programming challenge. It seems like the starting position would be the biggest issue, you could brute force it and try on every single possible position and every single possible rotation but there might be a smarter way of doing it.
Is it possible for you to package these individually (eg, tetris inventory package, gird building package ect)? cause when i download the files for this video it downloads all code for your previous grid videos, and when i try sort it out i have missing scripts.
Yes the package does contain lots of other systems, some related, some not. But the main demo in the video should be functional. Don't try to remove scripts since you might accidentally remove something that is necessary
Wow, that's a really great tutorial! For me only one question left: How to implement inventory with scrollable area? I'm only asking about the advice of getting the grid position. I just don't know how to calculate offset, to get the correct cell in the grid
Hello, I'm working on unity 2021.3.13f and I have the following issues when importing project Problem detected while importing the Prefab file: 'Assets/_/HouseBuildingSystem/Prefabs/LooseObjects/Archway.prefab'. The file might be corrupt or have missing nested Prefabs. See details below. And I have 102 errors which have different causes. Did any one had this issues and is there any new fix for the project?
The problem is fixed but now unity is not displaying for me the prefabs in scene from Assets/InventoryTetris/Items like grenades , ammo and katana and so on . They appear as a frame only . I can only see them in a separate canvas environment.
I'm so late to the party but I wondered if you had a video on how to equip weapons to characters from the inventory system you just made. Like swap weapons in and out with basic stat changes. I'm curious if you have a video like that that you could link me? It would help on what I'm currently working on at university. Thank you!
I made a basic equip system a long time ago but it's mostly focused on Drag Drop rather than on Equip Stats ruclips.net/video/isAmoM3RPEI/видео.html Stats and Weapon changes will depend on how you set up your character, not on the inventory system itself. Could be as simple as loading the stats from a scritpable object linked to a certain item ruclips.net/video/E91NYvDqsy8/видео.html
Hello. Embedding your inventory system and I ran into this problem: my Canvas has a Rendeer Mode - Camera, and not an Overlay like yours. And because of this, the object flies out of bounds when dragged. I need to fix this without changing the Canvas mode
Hey Code Monkey! Awesome video! I've set up the inventory similar to yours, but how can I pick up items and have them displayed on the grid inventory? I'm using scriptable objects for my items, but I'm not sure how to carry on with this. Do I use an InventoryManager script to add, remove items from my grid? Also, if I want to create prefabs of the items that can be picked up, do I have to adjust the InventoryItem script to make sure the two items are the same? Even if you can reference another video of yours that relates to this, that is fine too!
You just need to call TryPlaceItem(); whenever you pick up the item. That function requires a position so you can cycle through every single inventory grid position to try to find a valid position. If no valid position can be found then don't allow the player to pick it up. If a valid position is found then destroy the item in the world so it only exists in the inventory. I made a regular inventory a long time ago with item pick up which should help you understand that logic unitycodemonkey.com/video.php?v=2WnAOV7nHW0
This was a great video.Aight I know I am kinda late to the party but hum tbh I would like to see a 3D implementation of it. I googled a bit everywhere and it seems like I cant find a proper tutorial. I want to do something in the likes of Diablo/Path of Exile Inventory system. I don't expect you to do it but I would be very interested as I am kinda lost...
3 года назад
I was thinking to use with colliders and stuff, do you think it's more simple?
It could work but in order to snap the objects properly you're still going to need some sort of grid structure so might as well keep everything on the grid.
Awesome, keep up the good work. But I got a small issue, how can I keep the track of my what r in chest and what r in inventory. Cuz I really want this inventory system to work. Thanx in advance.
AHHHHH that final image at the end of the video, the two pistols should be able to interlock. Could go towards what you were saying of instead of making simple rectangle items have more complicated shapes.
In writing 'clean code' did you find, after writing all these use cases for the 'Grid Class', that you had to change the base clean code much? I find after adding tons of features my base code gets more complex, and doesn't fit all the use cases any more.
The base Grid class was already pretty clean from the start thanks to the fact that it's really based on the Grid class that I made for Battle Royale Tycoon, so even on the first video I already had a pretty good, very capable design in mind. Because of that I really didn't need to change all that much, the biggest change was probably converting it to 3D XZ instead of XY when I made the Grid Building System. Other than that I don't think I've modified much, all these more complex videos are built on top of that base in clearly separate classes rather than adding more specific features to the base class itself.
Is there a particular version of Unity, or setting this package works with? I imported it in 2020.3.24f1 and there are plenty things broken. It would be nice for this to include for example packages conf file. Of course it is great already, but it would be nice ;)
What errors are you seeing? You need URP, probably Cinemachine and that's about it. There's a message in the download page on the packages that are generally required.
What? You can't download but also got compiler errors? Do you mean your own code? What is the error? Without knowing what error it is there's nothing I can do to help.
Could I add this to like a multiplayer fps game I’m going for like a dayz/rust kinda thing but the multiplayer part is where I’m struggling because I have problems trying to convert normal tutorials to ones that work with photon pun any tips?
I wonder if you can make a system like this in VR like I know we already have like ghosts of Tabor and into the radius that's good examples but like I'm talking more like the resident evil type thing is that possible cuz if so I would love to do it cuz I haven't seen really any VR game do it no frankly I haven't played the VR port of resident evil so but if anyone knows please let me know I would love to try doing this on the game I eventually am planning on making
I just created a new project on unity 2021.3.25f1 added the utils and the InventoryTetris unitypackage. The problem is on lines 146 and 149 at: _/Stuff/V_Animation/SaveSystem.cs When I imported the package it came with files from other projects, I have some other warnings, but just this erros. I know some C#, but I'm starting now with unity, so I guess its too much too understand, I just liked the system and was trying to use it. Anyway I'll try some other simple inventory system until I can understand the code, but thanks for helping, didn't expect such quick feedback on an old video. If you need more details I can provide, I don't know if others are having these errors.
Yes that's what game development is like, you build systems on top of systems. You don't build everything completely from scratch, if you do you will never finish a game.
Neat video but I don't think you can call it a tutorial when it's just a high-level overview and requires a bunch of prerequisite knowledge/tutorials. Feels more like a showcase.
Who in the hell would want to spend 1000$ on a game Dev course lol people are so greedy for money nowadays 🤣 And after the little "deal" their having its like almost 4k like wtf
For the most part the only difference is swapping sprites for 3D Meshes, that's it unitycodemonkey.com/video.php?v=3zxTigjJr24 I used the same underlying Grid System to make a 3D Building System unitycodemonkey.com/video.php?v=dulosHPl82A
It's an overview video showcasing the various steps I took to reach the final result. This is the kind of topic that I could not possibly cover in a step-by-step video, it would have been a 10+ hour video. If you want to see exactly step by step how it works then yes download the project files and inspect all the source code. The majority of the code is the Grid System which was made in several step-by-step tutorials, you can watch the full playlist and you'll immediately understand most of the code used in this system.
I also feel it was kind of pointless. Especially the part about how offsetting the position when rotating was tricky but he didn't even have one line mentioning how he did it
@@yoimokacc Like I said if you want to dig deeper into the specifics you can download the full source code and inspect it all. I also covered that specific rotation in more detail in the Grid Building System
💬 Add more engagement to your Inventory with this interesting system!
✅ Get the Project Files and Utilities at unitycodemonkey.com/video.php?v=fxaDBE71UHA
🌍 Make a full time living creating games with The Ultimate Game Dev Course bit.ly/theultimategamedevcourse
I cant wait for the project files to be public! Amazing work
Seriously, Brackeys and Code Monkey are the kings of Unity. Thank you so much for helping us finding solutions to our problems faster and teaching us new things/concepts.
Remove dat spider
I was about to start this for my game, just tonight in about 4 or 5 hours. I love you
I used DTInventory from the unity asset store. It's incredible imo. Super easy to implement if you're a decent coder and the creator has included a bunch of methods like add item and search inventory for item that are easy to use.
@@gorrillaconvention Oh damn, what a great finding! I wasn't expecting it to be free. Thx for sharing
@@JesusAmaTeMenino Let me know if you need any help implementing it! It can be a bit bumpy starting out and I'd be happy to help you get started.
@@gorrillaconvention Hi, Do you have copy of DT inventory?
Because it has been deprecated from the Asset Store
@@MrScandalist699 sure do! I'd be happy to give it to you but I'm at work so it'll be a bit later, what time zone are you in?
Check out how Matt from Game Dev Guide handled UI grids and UI line renderer! Implementing that in this would be sweet. He also has a custom grid layout video so you don’t have to use unity’s grid layout component.
Tbh it would be really cool to see how you would approach it after seeing his/other youtubers
I love that channel but I don't think I saw that video, I'll go watch it now thanks!
I've been waiting for this one! Glad you explored the topic
Code Monkey's favorite word: Easy
Me: He breaks down difficult concepts and makes them easy.
The first time I encountered this type of inventory system was with Sir, You Are Being Hunted, and I feel in love with it!
Just what I was looking for, nice 👍
Code Monkey that's for doing these videos your positive voice is my light in these dark times, I get hurt in work and now I am home, so i have plenty of time to catch up. Looking forward code maybe one day like you. You are really a Master, all the best.
Ahhhh Resident Evil 4
It's taken me a while to get to it, but I have finally started on a shooter game i've been wanting to make for a while. i am going to use a modified version of this system as part of a hybrid inventory system that will contain a general storage area using the tetris system, and special slots on the side for certain items. I think this will be a fun aspect of the game, for the player to manage their inventory. thank you for making the project files available!
Nice, that sounds like a fun idea, best of luck!
Нормас👍🏿 Хороший урок, спасибо 😉
Ёп та два русских и среди первых, на английском канале😂😂
@@Orgos_Studios тут много русских....наверное
Great job ! And yes, it will be useful in the asset store if the system is easy to integrate into the developers ' own systems.
I was thinking Diablo 1 and 2 but I guess Dayz come to mind too. Thanks for the video.
YUUS JUST WHAT I WAS LOOKING FOR
Yes, I would totally love a fully featured inventory system to put into my games! It would be a wonderful asset.
I'm confused. Was this a tutorial or a promo for other tutorials?
Game Development is all about building systems upon systems which is exactly what I did here. I took a Grid System that I built previously and built this Tetris inventory upon it
I was trying to decide what inventory system I was going to use for my game, but this will do nicely. Thanks for being awesome mr monkey!
It would be great to see a version of this with a selection cursor that can be controlled with a controller, and clicking on items gives you a menu for what to do with them
Awesome video and I hope to see the grid system as a pro tool on the unity store one day :)
It's looking pretty good! Nice work!
I was just thinking about making something like this in a game! Amazing timing!
Thanks for this Im going to mod it to use as a room decorator for my game.
fantastic thanks a lot
Great stuff
I have seen that inventory in s.t.a.l.k.e.r: call of Chernobyl.
Oh yeah I totally forgot about that one!
👏I love it ✨🤩
Any way to rewatch the livestream? Thank you
All the recordings are on this playlist ruclips.net/p/PLzDRvYVwl53t4ocaP2Gl-L-QWwW16TMWU
You guy keep uploading this fantastic videos online it
Horrifyingly difficult to use the project files with so many errors and things bundled together. Very sad, but I guess if you wanted to make it accessible you'd make it an asset or package somewhere. Instead we have a barely usable mess of dependencies on random things. Welp
What errors are you seeing? The package shouldn't have any errors. Check the FAQ on the download page, look at what the errors are saying, you're probably missing packages and not any error in the video code.
Love this so much, Yes do it RE style or Dayz style :D
Thank you very much for adding the Arabic language
thank you!
Thanks🤜
i'd like it as a proasset but on the condition it had support for sorting as my own implementation of this same idea got stuck on the sorting part.
The issue was testing the position so it all fitted. When you had a close to full inventory my implementation fell completely apart. An example of what I was trying to do is the sort function in Kenshi.
I hadn't thought of auto sorting, that could be an interesting programming challenge.
It seems like the starting position would be the biggest issue, you could brute force it and try on every single possible position and every single possible rotation but there might be a smarter way of doing it.
Is it possible for you to package these individually (eg, tetris inventory package, gird building package ect)? cause when i download the files for this video it downloads all code for your previous grid videos, and when i try sort it out i have missing scripts.
Yes the package does contain lots of other systems, some related, some not. But the main demo in the video should be functional. Don't try to remove scripts since you might accidentally remove something that is necessary
hey is there anywhere you are explaining how you're using the mouse canvas point instead of the world point??
Wow, that's a really great tutorial! For me only one question left: How to implement inventory with scrollable area? I'm only asking about the advice of getting the grid position. I just don't know how to calculate offset, to get the correct cell in the grid
Awesome
while I was seeing how the whole package works, there was a question,How to add with one click?
Hello,
I'm working on unity 2021.3.13f and I have the following issues when importing project
Problem detected while importing the Prefab file: 'Assets/_/HouseBuildingSystem/Prefabs/LooseObjects/Archway.prefab'.
The file might be corrupt or have missing nested Prefabs. See details below.
And I have 102 errors which have different causes.
Did any one had this issues and is there any new fix for the project?
Looks like theres some missing reference to the house building system, its just a warning though, not an error, so it shouldnt block compilation
The problem is fixed but now unity is not displaying for me the prefabs in scene from Assets/InventoryTetris/Items like grenades , ammo and katana and so on . They appear as a frame only . I can only see them in a separate canvas environment.
I wish the Bioshock games kept the Inventory Tetris from System Shock 1&2.
I'm so late to the party but I wondered if you had a video on how to equip weapons to characters from the inventory system you just made. Like swap weapons in and out with basic stat changes. I'm curious if you have a video like that that you could link me? It would help on what I'm currently working on at university. Thank you!
I made a basic equip system a long time ago but it's mostly focused on Drag Drop rather than on Equip Stats ruclips.net/video/isAmoM3RPEI/видео.html
Stats and Weapon changes will depend on how you set up your character, not on the inventory system itself. Could be as simple as loading the stats from a scritpable object linked to a certain item ruclips.net/video/E91NYvDqsy8/видео.html
Hello. Embedding your inventory system and I ran into this problem: my Canvas has a Rendeer Mode - Camera, and not an Overlay like yours. And because of this, the object flies out of bounds when dragged. I need to fix this without changing the Canvas mode
I think you need to do some math based on your cameras orthographic size. Not exactly sure what but play with the numbers
Hey Code Monkey! Awesome video! I've set up the inventory similar to yours, but how can I pick up items and have them displayed on the grid inventory? I'm using scriptable objects for my items, but I'm not sure how to carry on with this. Do I use an InventoryManager script to add, remove items from my grid? Also, if I want to create prefabs of the items that can be picked up, do I have to adjust the InventoryItem script to make sure the two items are the same? Even if you can reference another video of yours that relates to this, that is fine too!
You just need to call TryPlaceItem(); whenever you pick up the item.
That function requires a position so you can cycle through every single inventory grid position to try to find a valid position.
If no valid position can be found then don't allow the player to pick it up.
If a valid position is found then destroy the item in the world so it only exists in the inventory.
I made a regular inventory a long time ago with item pick up which should help you understand that logic unitycodemonkey.com/video.php?v=2WnAOV7nHW0
@@CodeMonkeyUnity Thank you so much!
This was a great video.Aight I know I am kinda late to the party but hum tbh I would like to see a 3D implementation of it. I googled a bit everywhere and it seems like I cant find a proper tutorial. I want to do something in the likes of Diablo/Path of Exile Inventory system. I don't expect you to do it but I would be very interested as I am kinda lost...
I was thinking to use with colliders and stuff, do you think it's more simple?
It could work but in order to snap the objects properly you're still going to need some sort of grid structure so might as well keep everything on the grid.
Jesus man, thank you!
Awesome, keep up the good work. But I got a small issue, how can I keep the track of my what r in chest and what r in inventory. Cuz I really want this inventory system to work. Thanx in advance.
Look at how the Save function works, just go through the whole inventory grid and see what items are on what position
AHHHHH that final image at the end of the video, the two pistols should be able to interlock. Could go towards what you were saying of instead of making simple rectangle items have more complicated shapes.
In writing 'clean code' did you find, after writing all these use cases for the 'Grid Class', that you had to change the base clean code much? I find after adding tons of features my base code gets more complex, and doesn't fit all the use cases any more.
The base Grid class was already pretty clean from the start thanks to the fact that it's really based on the Grid class that I made for Battle Royale Tycoon, so even on the first video I already had a pretty good, very capable design in mind.
Because of that I really didn't need to change all that much, the biggest change was probably converting it to 3D XZ instead of XY when I made the Grid Building System.
Other than that I don't think I've modified much, all these more complex videos are built on top of that base in clearly separate classes rather than adding more specific features to the base class itself.
Is there a particular version of Unity, or setting this package works with? I imported it in 2020.3.24f1 and there are plenty things broken. It would be nice for this to include for example packages conf file. Of course it is great already, but it would be nice ;)
What errors are you seeing? You need URP, probably Cinemachine and that's about it. There's a message in the download page on the packages that are generally required.
@@CodeMonkeyUnity yeah, in the end it was just cinemachine, so sorry for bothering you
hi Code Monkey, thanks a lot for your video, but I'd like to know how to make the item an irregular shape, just like the true Tetris.
For that you'd need to store a 2D array for the item shape, maybe a bool[,] that contains true where the item has a shape and false where not
great
It wont let me download project files plsss help meeee it says compliers failed and wont enter play mode
Nothing is Working
What? You can't download but also got compiler errors? Do you mean your own code? What is the error? Without knowing what error it is there's nothing I can do to help.
@@CodeMonkeyUnity I can download it just loads of packages have error signs I'll figure out eventually I was just overwhelmed yesterday
Could I add this to like a multiplayer fps game I’m going for like a dayz/rust kinda thing but the multiplayer part is where I’m struggling because I have problems trying to convert normal tutorials to ones that work with photon pun any tips?
Once getting into multiplayer you’ll only really find good help in courses unfortunately
Interesting...
please make videos how to make hyper casual games because its top days its good for bigger if you make it
I wonder if you can make a system like this in VR like I know we already have like ghosts of Tabor and into the radius that's good examples but like I'm talking more like the resident evil type thing is that possible cuz if so I would love to do it cuz I haven't seen really any VR game do it no frankly I haven't played the VR port of resident evil so but if anyone knows please let me know I would love to try doing this on the game I eventually am planning on making
Hey there. When i try download it says "Failed to download file!"
Strange, it's working fine for me, try reloading the page
@@CodeMonkeyUnity Still same :/ "Failed to download file!"
Found solution. description link is broken but comment link works
I can't solve:
the name "'clzf2'" does not exist in the current context
I just added the files, any help?
Hmm odd, that class isn't used anywhere in this project, do you have another class with that exact same name?
I just created a new project on unity 2021.3.25f1 added the utils and the InventoryTetris unitypackage.
The problem is on lines 146 and 149 at: _/Stuff/V_Animation/SaveSystem.cs
When I imported the package it came with files from other projects, I have some other warnings, but just this erros.
I know some C#, but I'm starting now with unity, so I guess its too much too understand, I just liked the system and was trying to use it.
Anyway I'll try some other simple inventory system until I can understand the code, but thanks for helping, didn't expect such quick feedback on an old video.
If you need more details I can provide, I don't know if others are having these errors.
Cool
How to make an inventory system... just use own code you already made for your previous RUclips tutorials
Yes that's what game development is like, you build systems on top of systems. You don't build everything completely from scratch, if you do you will never finish a game.
Neat video but I don't think you can call it a tutorial when it's just a high-level overview and requires a bunch of prerequisite knowledge/tutorials. Feels more like a showcase.
Yes it's a system built on top of other systems. If you watch all the related videos you will have no problem following everything here
Hmm, cool.
Who in the hell would want to spend 1000$ on a game Dev course lol people are so greedy for money nowadays 🤣
And after the little "deal" their having its like almost 4k like wtf
Has anyone made a system like this but 3d?
For the most part the only difference is swapping sprites for 3D Meshes, that's it unitycodemonkey.com/video.php?v=3zxTigjJr24
I used the same underlying Grid System to make a 3D Building System unitycodemonkey.com/video.php?v=dulosHPl82A
4:17
i know this from unturned
bruh sorry I read it wrong lol
Im sorry, but i dont see what the point is of this video? Is the idea that we download his files and try to follow while he explains?
You have to watch the previous videos from his playlist to understand better.
He already made the grid system, he's just showing off what you can make with it, if you want a "explanation", download the scripts and take a look.
It's an overview video showcasing the various steps I took to reach the final result. This is the kind of topic that I could not possibly cover in a step-by-step video, it would have been a 10+ hour video.
If you want to see exactly step by step how it works then yes download the project files and inspect all the source code.
The majority of the code is the Grid System which was made in several step-by-step tutorials, you can watch the full playlist and you'll immediately understand most of the code used in this system.
I also feel it was kind of pointless. Especially the part about how offsetting the position when rotating was tricky but he didn't even have one line mentioning how he did it
@@yoimokacc Like I said if you want to dig deeper into the specifics you can download the full source code and inspect it all. I also covered that specific rotation in more detail in the Grid Building System
Nah I know it from Unturned
Interesting... that game is very popular but I've never tried it!
@@CodeMonkeyUnity It was also made in Unity!
113 th like 😇
The Diablo Franchise never had anything to do with this type of inventory system. Not at all.
Uh? Where did I mention Diablo?
@@CodeMonkeyUnity Nah fam I meant that the Diablo franchise also use the system
First view
First comment
no
You made survivor squad?!?
Yup! I hope you liked it!
can I get a game just like this Tetris inventory, I do not want to come inside a survival game, just want to arrange an inventory