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