Project setup - Inventory System in Unity P2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in the description of this video you should find a link to google drive to the starter project inventory system zip file which contains the project that you can import to unity simply unpack the zip archive into a separate folder add it to your unity hub and you should be able to open it up using unity 2021.2.7f or the newer version and after the library is rebuild you should be able to go to the scene view and start scene and you should see the start scene with a player and an enemy and a ui bar since revealing the library might take some time let's talk about the model view controller architecture that we want to use to create our inventory system okay so the inventory system itself is just a custom data structure we are going to create a custom script for it as well as the scripts for the items but basically this will be a lot of coding and this will not be very visual but this will help us to store and persist the data about what our player has in its inventory and of course we can reuse it for our npcs now for our player to interact with our inventory system we need to create some sort of a ui to display the inventory to allow our player to interact with those items at the same time we may want to have some other uis like for example connect our inventory system to the shopping ui or a shopping system and some sort of a container ui to store our items in a container inside our game world this is why we need the model v controller pattern the pattern itself can be implemented in many different ways but the core idea is to split the model so our data structure from the views of the ui part of our system this way we can make our ui code more reusable since we may want to use the drag functionality or the window that shows us the item and the quantity in other ui so for example the shopping ui or the container ui and this is disconnected from our model so if we update our ui or if we update our model the only thing that needs to change is how our controller so the intermediary script exchanges the information between those two now in the next video we are going to start by creating the ui part of the inventory system since it is it is much easier to test when we create it as well as when we create our data structure it will be much easier to test the data structure itself now every script that we will write for this tutorial will be available on github the link will be in every video in the description also i will be posting my project as a zip file after each part of this tutorial for my patreon so you can more easily find any issues in your own projects when following this tutorial okay see you in the next video
Info
Channel: Sunny Valley Studio
Views: 22,062
Rating: undefined out of 5
Keywords:
Id: _mSRTZwmyNQ
Channel Id: undefined
Length: 3min 5sec (185 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.