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 |
|---|---|
| iconImageField | The Image component to assign the Inventory item icon image to. |
| iconSpriteName | The sprite name for Inventory item icon that will be displayed on this view. |
| itemDefinitionId | The id of the Inventory Item to display. |
| quantityTextField | The Text component to assign the Inventory item quantity to. |
Methods
| Name | Description |
|---|---|
| SetIconImageField(Image) | Sets the Image component to display Inventory item icon sprite on this view. |
| SetIconSpriteName(string) | Sets sprite name for item icon that will be displayed on this view. |
| SetItemDefinitionId(string) | Sets InventoryItem should be displayed by this view. |
| SetQuantityTextField(Text) | Sets the Text component to display the Inventory item quantity on this view. |