Animating Numbers
Number animation scripting example.
Float, Int, and Double are supported animatable number types. Although, for unsupported types, you can just use implicit or explicit type conversion.
It's required to pass a setter that will set the value of the number that you want animated with each update.
Animating a Float
Type Conversion
We can use the above example and slightly alter it to animate a numeric type of our choice.
For example, here's how we can animate a ulong instead of a float:
Animating a Double
Use AnimationCreator.DoubleAnimation to animate a double.
Animating an Int
Use AnimationCreator.IntAnimation to animate an int.
Last updated