Next: , Previous: , Up: Inventory   [Contents][Index]


10.7 Pickable

Component: Pickable

This component implements items that can be picked up and placed in inventory. To cause this to happen, send the ’Pick’ message to this object. Pickables need a corresponding ActiveObject which represents the item while it’s in-use. A ’Pickable’ and ’ActiveObject’ pair represent one Inventory Item. These objects must both be inside a Resources folder in your Project, or Unity will throw an error when you try to use them in your game.

Field of Pickable: PickModes pickMode

Are we picking up an inventory item, or a Deployable object?

Default value: PickModes.Item

Message on Pickable: Pick ()

Causes this item to enter the Player’s inventory

Field of Pickable: PickModes pickMode

Are we picking up an inventory item, or a Deployable object?

Default value: PickModes.Item

Message on Pickable: Pick ()

Causes this item to enter the Player’s inventory