I’m trying to make a text clip increment upwards from 0 - n (100 in this case). Using the EaseIn duration, I can get it to do so via InputWeight, however, this only allows incrementation to 0.5 of the clip - what’s the best way to getting this done over the length of the clip (essentially normalised time)?
trackBinding = playerData as TextMeshProUGUI;
if (trackBinding == null)
return;
int inputCount = playable.GetInputCount ();
for (int i = 0; i < inputCount; i++)
{
float inputWeight = playable.GetInputWeight(i);
ScriptPlayable<NumberTweenerBehaviour> inputPlayable = (ScriptPlayable<NumberTweenerBehaviour>)playable.GetInput(i);
NumberTweenerBehaviour input = inputPlayable.GetBehaviour ();
float newNumber = input.startNumber + (valueRange * inputWeight);
// Use the above variables to process each frame of this playable.
trackBinding.SetText(Mathf.CeilToInt(newNumber).ToString());
Debug.Log("InputWeight: " + inputWeight);
}
Any advice is highly appreciated!