Attribute UI¶
The Attribute UI component allows you to display the runtime information about a specific target's Attribute. To create one, click on a game object's Add Component button and navigate to Game Creator → UI → Stats → Attribute UI.

Besides the Target and the Attribute, all fields are optional and all that needs to be done is to drag Text and Image components to the corresponding fields.
Attribute UI
For example, to display the Name of an Attribute, drag and drop the Text component onto the Name field and it will automagically update its content, even if the targeted game object changes.
The Value, Percentage, Max Value and Min Value fields display the respective values of the Attribute, while Image Fill and Scale X/Scale Y can be used to display the current value as a progress bar. Transitions are a feature that allow the Image fill progress to animate and stall for a certain amount of time.

Transitions
This is mostly used on health and mana bars, where getting hit makes the HP bar display a second bar below that decreases after a few seconds, in order for the player to get a sense of the amount of damage taken.
Ticking any of the When Increment and When Decrement options reveals two new options below.
- Stall Duration: Amount of seconds debounced between the value change and the start of the transition
- Transition Duration: Amount of seconds it takes to animate towards the targeted value.
Units¶
Some games display an Attribute as a series of units, such as hearts or pips, instead of as a continuous bar. To do so, use the Units section of the Attribute UI component:
- Unit Container: The rect transform where each unit prefab is instantiated.
- Unit Prefab: A prefab that contains an Attribute Unit UI component, which displays the fill of a single unit.
- Unit Mode: Determines whether the units that are completely empty are kept (Keep Empty Units) or hidden (Hide Empty Units).
- Unit Value: The amount of the Attribute's value that each unit represents.
Hearts
If the Attribute has a maximum value of 100 and the Unit Value is 10, the Attribute UI will display 10 units. When the Attribute value is 35, the first 3 units will be completely full and the fourth one will be half full.