Lets you ease a float value based on any animation curve. Usage
is pretty much the same as Mathf.Lerp() only that you also pass
an Animation curve as parameter.
Namespace: NarayanaGames.CommonAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
Parameters
- curve
- Type: AnimationCurve
the curve to drive easing
- from
- Type: System Single
the value to start from
- to
- Type: System Single
the value to ease to
- time
- Type: System Single
the time in the animation (if you use animation curves with time from 0 to 1, this works exactly as Mathf.Lerp)
Return Value
a value between from and to based on timeSee Also