Item and Inventory System - Unity Tutorial - Stacking Items and Utilising Scriptable Objects

preview_player
Показать описание


In this video I show you how to stack items in your inventory as well as making the most of scriptable objects.
-----------------------------------------------------------------------------------------------------------
If you liked the video then please respond with a like and a subscribe to show your support for the channel and I'll repay you by creating more tutorials to teach you the wonder that is Unity :D
Рекомендации по теме
Комментарии
Автор

thank you for this, seriously, so many people who make tutorials just teach you something and dont mention the pro's and con's of a method, i really like that you go into detail and explain a bit before getting into it :) thank you for all these tutorials.

TheHauntedSockdrawer
Автор

Please make more, i just love it, i only saw your channel and there is everything.

polishedmeat
Автор

Nearly the entirety of this video could have been used to replace the previous one. Keep up the great work though. I would just like to see a bit more due diligence and forethought. Thanks for everything!

mattcoulson
Автор

To do the for loop auto-complete, you type 'for' and then press Tab twice quickly :)

That JsonOverwrite method is interesting, definitely new to me! Usually when I need to clone a Scriptable Object, I use Unity.Object.Instantiate(someScriptableObject), which creates a new instance of the ScriptableObject that can be edited freely.

Also, I've seen some people suggesting to store references like Inventory.instance as private Inventory inventory = Inventory.instance; for example. I'm not sure why it's recommended as I didn't think there was an overhead for accessing static variables, but I guess if nothing else, it neatens up the code a little bit.

jamiebates
Автор

Can Someone please give me the script my is not working. When I drag a item it work but does not when I swap Item it just Delete the item. P.S. I been stuck for Hours. :(

thepope...
Автор

Is it really necessary to make 20 scriptable objects? couldn't you just keep the info on the slot script?

sharpedged
Автор

I've ran into a problem. I've followed everything up until now but when I add an Item to a slot it changes all slots to the item but only one of them is actually the item.

Steelersfan
Автор

i have question, how we call AddItem function without button

infinuscerro
Автор

Hit tab twice to fill in the for loop. I will say it in discord soon. I'm sure you probably had someone tell you

joshuaennis
join shbcf.ru