How to animate blend amount from 0 to 1

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Omid Mafakher

Is it possible to animate blend amount between 2 number from code?

Could you please be more specific? What do you mean by “animate blend amount”?

Ertain | 2019-05-06 00:08

:bust_in_silhouette: Reply From: Ole
lerp(1.0, 3.0, 0.5)
# returns 2.0

lerp(1.0, 3.0, delta)
# returns whatever 'delta' points at between the two inputs

_CurrentVariable = lerp(_CurrentVariable, _GoalVariable, delta)
# returns _CurrentVariable that always grows/shrinks closer to _GoalVariable