DOCounter Method
DOCounter(Text, int, int, float, bool, CultureInfo)
public static TweenerCore<int, int, NoOptions> DOCounter(this UnityEngine.UI.Text target, int fromValue, int endValue, float duration, bool addThousandsSeparator = true, CultureInfo culture = null)
Tweens a Text's text from one integer to another, with options for thousands separators
Parameters
targetTextfromValueintThe value to start from
endValueintThe end value to reach
durationfloatThe duration of the tween
addThousandsSeparatorboolIf TRUE (default) also adds thousands separators
cultureCultureInfoThe CultureInfo to use (InvariantCulture if NULL)