Class InventoryItemView
Component that manages displaying a Inventory Item's icon and quantity. When attached to a game object, it will display the Inventory Item's icon and quantity.
Inherited Members
Namespace: UnityEngine .GameFoundation .UI
Assembly: solution.dll
Syntax
[AddComponentMenu("Game Foundation/Inventory Item View", 5)]
[ExecuteInEditMode]
public class InventoryItemView : MonoBehaviour
Properties
Name | Description |
---|---|
icon |
The Image component to assign the Inventory item icon image to. |
icon |
The sprite name for Inventory item icon that will be displayed on this view. |
item |
The id of the Inventory Item to display. |
quantity |
The Text component to assign the Inventory item quantity to. |
Methods
Name | Description |
---|---|
Set |
Sets the Image component to display Inventory item icon sprite on this view. |
Set |
Sets sprite name for item icon that will be displayed on this view. |
Set |
Sets InventoryItem should be displayed by this view. |
Set |
Sets the Text component to display the Inventory item quantity on this view. |