BindText/TextMeshPro
2_Bindings
Last updated
2_Bindings
Last updated
Binds a text / text mesh pro to a variable (currently supports only the 4 types : bool, int, float, string). Find the Level Text GameObject in the hierarchy.
UICanvas/Top/LevelText.
Let’s go through the properties:
Prefix: adds text before your variable value.
Suffix: adds text after your variable value.
Increment: adds a number to the int. It mostly used for Level index (as we start at 0, but we want to display 1 to the player).
IsClamped : enable clamping the value shown.
Min Max : minimum and maximum used for clamping the value shown. So in this case, if your variable goes below 0, the value shown in the text will be minimum 0 (won’t display negative numbers).
The HealthText also has a BindTextMeshPro component.
UICanvas/Bottom/HealthText.
Decimal Amount: how many decimal numbers we want to display.