Inventory System
This holds all the information for my inventory system.
Inventory Tabs
This video shows that you can click through the tabs in the inventory. The only tabs that have content at the moment is the inventory and the exit game tab. I plan on adding crafting, relationships, farm animal management, the map, the collections page, and the settings tab.
Item Stacking
This video shows that the items can stack in the inventory. You can drag them on top of each other to stack, or you can pick items off of the floor and they automatically stack in the inventory.
Move to Hotbar
This video shows that items can be passed from the inventory to the hotbar.
Slots Instantiating
This video shows how the inventory slots are instantiated. The slots in the inventory aren't loaded until the game begins. When the game loads, the slots are instantiated with the saved items inside.
Item Scripts
These are the scripts on the item prefabs. The seed items have the seed item script which lets you add the crop data. The Item script handles adding and removing from the quantity of the item, determines if the item is a seed, and handles the item being picked up from the ground and added to the inventory.
Slots Instantiating
This video shows how the inventory slots are instantiated. The slots in the inventory aren't loaded until the game begins. When the game loads, the slots are instantiated with the saved items inside.