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 |
---|---|
currency |
The id of the Currency to display. |
icon |
The Image component to assign the Currency icon image to. |
icon |
The sprite name for Currency icon that will be displayed on this view. |
quantity |
The Text component to assign the Currency quantity to. |
Methods
Name | Description |
---|---|
Set |
Sets Currency should be displayed by this view. |
Set |
Sets the Image component to display Currency icon sprite on this view. |
Set |
Sets sprite name for item icon that will be displayed on this view. |
Set |
Sets the Text component to display the Currency quantity on this view. |