|
|
|
 |
Attention |
Topic was automatically imported from the old Question2Answer platform. |
 |
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
|
|
|
 |
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