- Advanced AI
popularité : 86
Levels and XP popularité : 94
Simple Health Bar popularité : 84
Regenerative Mana popularité : 88
Poison Status Effect popularité : 82
Strength and Armor popularité : 82
Lockpicking popularité : 88
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Slide 10
IMAGE OR CARROUSEL for section header You successfully read this important alert message.


Health Attribute

Let’s start from the beginning. In order to represent the health we need two create to elements:

- A Stat that defines the maximum amount of health
- An Attribute that holds the current amount of health

To do so, open the Preferences Window and click on Stats. If you have the Example 1 scene open, you’ll see there are a bunch of stats. The one that defines the maximum amount of health is called vitality.

The Attributes tab also has a some elements. As its name implies, the health attribute is the one that handles the health gauge and has the vitality stat bound.

assets%2F-LAqwYovmUPn5V6CMeID%2F-LLtBustnaBGLNuTirIb%2F-LLtCv4CGgMMIVOUWT0e% (...)

(Clicking on the RED box damages the player. Clicking on the GREEN one will heal him)

To represent the UI all we need to do is to create a Canvas UI object and add the Attribute UI component. This component allows to display a information about an Attribute in different formats and automatically updates the information when the attributTEXTE APRES FILTRAGE
-  : liste tous les intertitres de l’article
-  : liste tous les documents de l’article sous forme de mini-vignette non cliquables. Avec deux paramètres :

width : largeur de la vignette en px,
raz : nombre de vignette sur une seule ligne. Juste après la Nième(raz) vignette, un
est inséré.