Next: Clip Inventory, Previous: Minion Spawn, Up: Inventory [Contents][Index]
Inventory does not use object pooling directly. This component represents an inventory item that is currently in-use. Generally, this is something attached to the player like a +5 Helmet of the Dunce or a machine gun. It must have a ’Pickable’ prefab associated with it that has a ’Pickable’ component on it and both must be inside a ’Resources’ folder, otherwise you will get an error. Add an audio clip for stow/drop to the object and it will play automatically (Audio Source component).
string
inventoryKeyUnique name of this inventory item, matching it’s ’Pickable’ mate. This tells MultiGame what Inventory Item this is and allows it to keep track. It must match the ’Pickable’ Inventory Key
GameObject
pickableThe pickable object associated with this item. MultiGame’s local inventory system tracks objects through the Pickable
bool
closeInventoryOnSelectClose inventory GUI automatically when selecting an item?
Default value: true
Texture2D
iconIcon for this object in inventory
float
iconSizeXWidth of inventory icons
Default value: 32.0f
float
iconSizeYHeight of inventory icons
Default value: 32.0f
bool
debugLog messages in the Console and log file when we interact with this component.
Default value: false
Removes the item from the character heirarchy and puts it back in the Inventory
Removes the item from the character heirarchy and instantiates it’s pickable at this location
string
inventoryKeyUnique name of this inventory item, matching it’s ’Pickable’ mate. This tells MultiGame what Inventory Item this is and allows it to keep track. It must match the ’Pickable’ Inventory Key
GameObject
pickableThe pickable object associated with this item. MultiGame’s local inventory system tracks objects through the Pickable
bool
closeInventoryOnSelectClose inventory GUI automatically when selecting an item?
Default value: true
Texture2D
iconIcon for this object in inventory
float
iconSizeXWidth of inventory icons
Default value: 32.0f
float
iconSizeYHeight of inventory icons
Default value: 32.0f
bool
debugLog messages in the Console and log file when we interact with this component.
Default value: false
Removes the item from the character heirarchy and puts it back in the Inventory
Removes the item from the character heirarchy and instantiates it’s pickable at this location
Next: Clip Inventory, Previous: Minion Spawn, Up: Inventory [Contents][Index]