Skip to main content

Introduction

The Inventory Database component provides a list of all objects that can be used by various Inventories. This way they can be reused and quickly updated by AssetBundles or Json updates.

OBSOLETE#

This file is obsolete, please use Inventory Database V2 instead.

"Inventory Database"

Fields#

NameDescription
PersistMark this object as DontDestroyOnLoad
Data SourceSets where to load the data from
Bundle NameName of the AssetBundle to load from
Asset NameName of the Asset in the AssetBundle to load
PathRelative path to asset in Resources
Load On AwakeLoad data on awake
CurrenciesAll available Currencies
Equip SlotsAll available Equip Slots
ItemsAll available Items
Item CategoriesAll available Item Categories
Quick SlotsAll available Quick Slots
RaritiesAll available Rarities
Recipe CategoriesAll available Recipe Categories
RecipesAll available Recipes
SocketsAll available Sockets
SettingsDatabase Settings

Properties#

NameDescription
actionSequencesGet a list of all Action Sequences
instanceGets the current instance of the object
isLoadedGets if the database has loaded

Methods#

NameDescription
JSONExportExport all data to json
JSONImportImport json data
LoadLoad data from source
SyncRequestSync a request to the main GUI thread