Inventory System in Unity based on Scriptable Objects - P1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to this tutorial about creating an inventory system in unity based on scriptable objects at the end of this tutorial we are going to see a inventory system that allows us to see a description of an item and we are going to also talk about how to add specific description like durability for a sword item we are also going to be able to drag the item and move it around and if we close the inventory and reopen it the order will stay the same we are going to also be implementing different functionality for each item for example if i select this apple i can see that by right clicking i can eat the apple or drop it if i eat the apple i will regain some health and if i eat all the apples the item will be removed from my inventory for other items we can see that there is the different functionality for example for my sword i can see that i can equip the item or drop it if i equip it it will be removed from my inventory and moved to a test equipment script and i can of course drop the item it will also be removed from my inventory i'm going to also show you how to integrate this with some sort of a very simple pickup system so we can simply pick up items from the ground and again i can right click on the item and equip it and as you can see the second sword has decreased durability this is the sword that was currently equipped and it was returned to the inventory and the new sword was equipped instead hi i'm peter and welcome to sunny valley studio tutorials as i have mentioned before we will use scriptable object to create our inventory system data structure this should allow us to persist our inventory system data between different scenes as long as each scene contains a reference to our inventory scriptable object now to keep the code base maintainable i'm going to also show you how we can use model view controller design pattern to split the code behind the model so our inventory scriptable object and the views of the inventory ui if it sounds interesting in the next video we are going to prepare our starter project so you can follow along with me in this tutorial and before we go to the next video thanks a lot to my patreons thanks to your support guys i can make those tutorials you can join up by following the link in the description and support the channel and i will list you in each video okay see you in the next video
Info
Channel: Sunny Valley Studio
Views: 46,359
Rating: undefined out of 5
Keywords: Inventory System using Scriptable Objects in Unity, inventory system in unity, how to inventory system, rpg inventory unity, inventory in unity, inventory system tutorial, unity pick up, inventory pick up unity, how to pick up items in unity, unity inventory 2d, unity tutorial 2d, brackeys, sunny valley studio, unity model view controller, unity mvc pattern
Id: xGNBjHG2Oss
Channel Id: undefined
Length: 2min 33sec (153 seconds)
Published: Fri Feb 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.