Skip to content

Count Number on Text Sequential

Count

Counts from a number to another number and sets the value to the TMP Text component's text.

So basically, this is a counting animation.

Base Properties

To learn about the common Base Properties, please see Base Sequential

Target Object Options

This sequential derives from Object Returner Sequential and gets all its properties from that sequential. So, to learn about the Target Object Options please see Object Returner Sequential

Animation Options

This sequential derives from Animation Sequential and gets all of its properties. So, to learn about the __Animation Options please see Animation Base

Target Object

Target Object (or Target Objects if Multiple Objects are returned) needs to be TextMeshPro type. So please make sure that the game object assigned in this field has a TextMeshPro component attached. Otherwise you'll see a runtime error log when this sequential plays.

End Value Type

This option determines the calculation of the end value of the number.

Initial to Value

This gets the number from TMPText's text value then modifies the number from its initial value (the value before this sequential starts) to the End Value.

From Value to Initial

This sets the number to the End Value and then modifies it to its initial value again.

Initial Plus Value

This gets the number from TMPText's text value then adds End Value to the initial number and modifies it to the calculated end value.

Initial Multiply Value

This gets the number from TMPText's text value then multiplies the initial number with the End Value and modifies the it to the calculated value.

From A to B

This lets you define the starting number and end number of the count animation independent from the initial text of the TMPText component.

End Value

This is the value that determines the end number in accordance with the End Value Type option as explained above.

It's possible to assign different kind of values to this property (e.g. directly, randomly, from variable).

Info

To learn more about assigning values with different options, see Value Assign

Start Value

This is only available when the End Value Type is From A to B.

This is the starting number value of the animation.