Using Tuples in Unity3D with C# 7.0
13:29
Unity3D - Level Scaling for beginners
13:56
Пікірлер
@nobilested8432
@nobilested8432 4 күн бұрын
Im having an issue with this tutorial because all of the variable names are just "item" so Im unsure how each variable or class interacts with each other
@thewiredspider9660
@thewiredspider9660 8 күн бұрын
Thank you for not only making these videos, but going through the stress of debugging!
@kryptiaxx
@kryptiaxx 24 күн бұрын
when the world needed him most, he vanished (hey! hope youre doing okay - this content is amazing btw thank you so much)
@SPECCANAL
@SPECCANAL Ай бұрын
You could create a Patreon or a KZfaq member, I would definitely support it. So that you could give more sequence to your videos.
@TheRealspoingis
@TheRealspoingis Ай бұрын
Hey So I just cant seem to find out how to save Scriptable Objects that are instanciated in a scene what is the best type of inventory system that allows the same item multiple times with different stats in a players inventory thats saveable?? I have been using scriptable objects for the longest time since it allows for just creating the object over again and allowing to change the stats of those items but to make it so it saves feels impossible I Use CreateInstance does this work with this??
@ceeayestro
@ceeayestro Ай бұрын
I knoww this series is ancient but does anybody know why I cant swap from the Dynamic interface to the Static Interface but not vice versa??? I have been stuck for days on this.
@qzlocx
@qzlocx Ай бұрын
dhar mann??????
@calebadkins1828
@calebadkins1828 Ай бұрын
If anyone else is getting a file access error for the equipment panel, I renamed my save path in the inspector to "equip.save" instead of leaving it blank and that fixed it!
@trebor2485
@trebor2485 10 күн бұрын
Thx, brother! I had a very simular problem which was driving me mad. Your comment helped.
@coregamestudio
@coregamestudio 2 ай бұрын
Awesome tutorial and works great even after 4 years. I have one question. Would it be hard to convert this to multiplayer or is there a good video of multiplayer inventory pls? Anyone have any suggestions. I would love for this author to have something for multiplayer as his video's are clear, easy to understand! Thank you...
@kadinlangdon757
@kadinlangdon757 2 ай бұрын
i have a question about the first half. My game has a keypressed inventory (tab). so the inventory does not update properly unless I move smpty lots and turn them into items, or have the inventory open the whole time while I pivck up the item. workaround?
@kadinlangdon757
@kadinlangdon757 2 ай бұрын
I found a fix for my issue. If anyone else is doing the same, here is how I fixed it: So I wanted my inventory to be togglable so I added a bit of code to enable and disable look, mouse movement, and the activ/not active of the inventory screen. my problem came through he fact that when loaded in, the slots were not create dyet because the inventory was off by default. so, if I picked up an item it would not show in the inventory. If I open the inventory after I picked up an item it would be blank, but I could move the "empty" slot and the dragged item would be the item I picked up. So, here is how my player script looks for this function (I also changed how the save/load function works) private void Update() { HandleInventoryToggle(); HandleSaveLoad(); } private void HandleInventoryToggle() { if (Input.GetKeyDown(KeyCode.Tab) || (Input.GetKeyDown(KeyCode.Escape) && inventoryActive)) { ToggleInventory(); } } private void ToggleInventory() { inventoryActive = !inventoryActive; Inventory.SetActive(inventoryActive); Cursor.visible = inventoryActive; Cursor.lockState = inventoryActive ? CursorLockMode.None : CursorLockMode.Locked; playerLook.enabled = !inventoryActive; } private void HandleSaveLoad() { if (Input.GetKeyDown(KeyCode.O)) { inventory.Save(); equipment.Save(); } if (Input.GetKeyDown(KeyCode.P)) { inventory.Load(); equipment.Load(); } } and all I had to add to make this work is adding this bit of code to the UserInterface script: slotsOnInterface.UpdateSlotDisplay(); I added it to the start method, that way it will update on start and be able to hold the items.
@NoodleFoxYT
@NoodleFoxYT 2 ай бұрын
how would i add crafting into this inventory system?
@jtmcfarland3512
@jtmcfarland3512 3 ай бұрын
Seems like there was a place I found Items.Something was supposed to be changed to Items.data.Something which makes it seem like your IDs may have been pulled from multiple locations. IDK None of this works with my game anyway because I'm not using sprites.
@jtmcfarland3512
@jtmcfarland3512 3 ай бұрын
I realize this video is getting old, but almost nothing works because I've already got a player controller where the mouse turns the player. There is no way to click or drag objects with the mouse. I think a better solution is to just require changing scenes where the input system is different. Also, it would be nice if items would drop back onto the terrain instead of destroying themselves if you drag them off the inventory.
@zero-to-100
@zero-to-100 3 ай бұрын
As a non-English speaker, Other lectures are hard to listen. However, this lecture is well explained and easy to understand to your voice full of passion and confidence. The quality of the lecture is very good. I'm glad I searched for the ScriptableObject Inventory lecture before implementing the inventory function as "Playerprefs". (It's terrible just to imagine.) Best lecture ever, Best teacher ever. I shared it to another developer. Have a great day.
@fishiesrock1294
@fishiesrock1294 3 ай бұрын
It doesn’t set the object to default, it sets it to food Edit: same with equipment, it sets to equipment but when I name it it sets to food
@stylaender
@stylaender 3 ай бұрын
Nice videos dude!
@rosterious
@rosterious 3 ай бұрын
17:36 im having a issue when i move the square to the sphere neither the sphere gets destroyed and the item doesn't add to the inventory. Ive gone through all the scripts like five times and there are no mistakes, there are also 0 errors or anything in the console. All the colliders are set correctly, I have no idea what is causing the issue. Could you maybe help?
@ana-zp7er
@ana-zp7er 3 ай бұрын
Hi, help? my inventory just spawns non stopping inventoryPrefab as soons as I collide to some object... and gives this error too: KeyNotFoundException: The given key '0' was not present in the dictionary. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key)
@thewiredspider9660
@thewiredspider9660 12 күн бұрын
Hi, so I had this issue the ID on one of my scriptable objects somehow got reset. So I had two items that both had ID of 0, I went and manually reset it, and it fixed it!
@LesP56
@LesP56 3 ай бұрын
I'm not sure, at this point, what the prefab is for in this video. If it's for just a "picture" of the item, why don't we just use a Sprite, instead.
@bowshattersg7776
@bowshattersg7776 3 ай бұрын
Thanks for the series, but here's where I hit a brick wall sadly, this just doesn't work for me no matter what I do. The items I picked up ended up overriding each other's item slot, which seems to be an issue no one else faced so far. I checked through the entire code and couldn't find any mistakes. Guess I'll have to settle for the old system from the previous part in the series, and trial and error the rest of the features implemented in the rest of the series.
@risingforce9648
@risingforce9648 4 ай бұрын
how can I fix the Event System in 2024? I got a canvas with EventSystem and standalone input module, but I can not drag and drop items inside the ivnentory... the half of this video is not work for me I recheck the video , my code...probably I need to put something in the "trigger" component?
@risingforce9648
@risingforce9648 4 ай бұрын
hey this works also for a 2D project? thanks
@ketron8759
@ketron8759 4 ай бұрын
i got an error when i load the Inventory: IndexOutOfRangeException: Index was outside the bounds of the array. InventoryObject.Load () (at Assets/Scriptable Objects/Inventory/_Scripts/InventoryObject.cs:127) edit: I solved it by simply assigning two different save paths to the player inventory(item object) and the player equipment(item object)
@toaitran7444
@toaitran7444 4 ай бұрын
Man, there are so many inventory issues that have been bothering me for 2 weeks, today I'm so lucky to have found your video. I like the way you explain when writing code, as there are many techniques if you don't explain, then I wonder: how can I learn this on my own? I love you! Wishing you many interesting experiences in life!❤
@TheAtticus82
@TheAtticus82 4 ай бұрын
Here 4 years after upload and this tutorial is still amazing. Thank you!
@maryverson
@maryverson 4 ай бұрын
thank you!
@Federal_TK
@Federal_TK 4 ай бұрын
Trying to follow the tutorial on unity 2022 lts and its working
@VeronikaWortham
@VeronikaWortham 4 ай бұрын
Lets count how many times we can say the word item in a single video!!
@xsten4233
@xsten4233 5 ай бұрын
Do you have to make a prefab for each inventory item? can't you just give it a child or something that has a sprite of the item?
@funkynormalcat988
@funkynormalcat988 5 ай бұрын
why do you named some variables with an underscore before?
@fanerv3304
@fanerv3304 2 ай бұрын
I guess because they are private, not public
@fred1541
@fred1541 5 ай бұрын
That's good~ I have been searching for the way how to make my game more flexible while managing so many items in one character
@Geckotr
@Geckotr 5 ай бұрын
Use grid layout group component of Unity for organizing the position of the slots, instead of organizing them with code. That's much practical and it will save you time
@iamrm1011
@iamrm1011 5 ай бұрын
how to make maxstackable
@drake_eric9799
@drake_eric9799 5 ай бұрын
yes finally im done the letter on code its not Asset is Assets LoadAssetAtPath("Assets my eye to blurb
@drake_eric9799
@drake_eric9799 5 ай бұрын
i think my folder was wrong
@drake_eric9799
@drake_eric9799 5 ай бұрын
i build it and run load is not working database is keep reseting to no database
@drake_eric9799
@drake_eric9799 5 ай бұрын
ah its null reference coz data base is reset whet you hit play
@drake_eric9799
@drake_eric9799 5 ай бұрын
i got bug now the sphere is null reference
@drake_eric9799
@drake_eric9799 5 ай бұрын
help pls build and run is to long loading maybe i skip making folder to other asset script
@drake_eric9799
@drake_eric9799 5 ай бұрын
space and enter not working but other button working
@drake_eric9799
@drake_eric9799 5 ай бұрын
finally im done yes
@drake_eric9799
@drake_eric9799 5 ай бұрын
the image not show in inventory screen and cant get the exact location to put it i learn but i think may canvas is wrong
@drake_eric9799
@drake_eric9799 5 ай бұрын
its not identify its identity and no public in Vector3 i guest you want to know who can read codes
@drake_eric9799
@drake_eric9799 5 ай бұрын
.identify and public in Vector3 is bug
@drake_eric9799
@drake_eric9799 5 ай бұрын
not working in capsule the item is not destroyable what should i do
@jbear40
@jbear40 5 ай бұрын
whew, finally did it. Furthest ive gotten in my game dev journey. Super euphoric. Thankyou goodsir :D
@jbear40
@jbear40 5 ай бұрын
30:00 Any tutorial 'series' you pick out a hat will have cliff hangers and unanswered errors. And shortly after coding and looking over it with peers i always get "why did you do it like that?". This is the only series ive come across where the person in the tutorial 1. isnt making any money 2. extremely in depth clean code awareness and 3. tested and researched the system before he went public with it. I dont know most of what im coding, but i know what it means. This code isnt gonna get thrown away. Thankyou goodsir
@SlipperyVeins
@SlipperyVeins 5 ай бұрын
I hope at some point you come back to the inventory system, there's a bug (maybe it's just me) where existing inventory slots dont update on start. Once I stopped clearing inventories on exit app, existing (and occupied) slots were empty on start. Also there are more features it would be neat to have, like max stacks of items, adding slots to the inventory during runtime, chests (creating and saving), etc. Anyway hope you're doing well.
@Bartocock
@Bartocock 5 ай бұрын
Great video!
@SlipperyVeins
@SlipperyVeins 5 ай бұрын
Im 15 years late on this, but i fixed the database shenanigans by moving database methods to a mono script. There's something cursed about on before and after serialization methods.