Skip to content

Inventory System

Thane5 edited this page Jan 29, 2023 · 3 revisions

The Inventory is largely based around Scriptable Objects.

  • The list of current inventory objects is stored in an "Inventory" asset, which contains a list of "InventoryObjects".
  • "All Inventory Objects" is just another "inventory" asset but needs ALL inventoryObjects to be referenced in it.
  • LootObjects are the presets that ItemDispensers use to define what type of item and how much of it are added to the inventory
  • "Start inventory" and Start "Inventory Objects" are used to set the inventory and object amounts on start

PlayerInventoryManager

All three lists ("Inventory", "Start Inventory", "All Inventory Objects") are referenced on the PlayerInventoryManager.

Because ScriptableObjects dont reset automatically, they are reset to their Start amounts here.

Clone this wiki locally