Text Display LPK_TextDisplay.cs

This component controls the appearance of a text display that keeps track of a timer or counter.

Suggested use:

Put on the same object as a Unity Text component and connect it to a Counter or Timer component you are displaying values of. Set the display mode and beginning text if desired.

Examples found in: Project 1, Project 3

Components
Property Type Description Default Value
Component Properties
Beginning Text String Text to put before the display text. Ex: Score: " "
Max Decimals Integer Max number of digits to display past the decimal. 3
Display Mode LPK Display Mode What kind of component are you displaying the value of. TIMER
COUNTER - Animation Settings
Animate Counter Boolean Animate the counter cycling through values to the new value when it changes, instead of snapping to the new value. False
Animate First Display - Animate Counter Exclusive Boolean Should the first update to this counter be animated. This can be used to NOT animate setting the initial value, if desired. False
Animation Duration Integer How long to animate going from the old value to the new value. 1
Debug Properties
Print Debug Info Boolean Toggle console debug messages. False
Label String Notes for the user about this component. This does nothing to the game or build. None