Inventory Item Definitions
Overview
An Inventory Item Definition is a catalog item providing static data for your item instances.
It is the only item you can instantiate.
Editor Overview
Open the Inventory window by going to Window → Game Foundation → Inventory. The Inventory window will let you configure inventory item definitions.
The interface is similar to the other catalog items editor.
(1) In the Mutable Properties section you can define a list of fields for the item instances to read and write at runtime.
A mutable property must define:
- A value type. The current supported type are
long
,double
,bool
andstring
. - A unique key for you to access the property at runtime.
- A default value.
Mutable Properties belong only to the definition they are declared into. This means you can use the same property key in different definitions with a different type if you want to.