API reference

ProgressCurve Class

Implements ITimeConsumer
ProgressCurve provides a helper for creating curves for easing.
In some respects it works like an AnimationCurve except that ProgressCurve always takes in a normalized AnimationCurve and a second parameter defines the length of the animation.
A few helper methods are provided to track progress through the animation.

Constructors

ProgressCurve ()
Signature
ProgressCurve()
ProgressCurve ( animationCurve , animationLength )
Signature
ProgressCurve(AnimationCurve animationCurve, float animationLength)
Parameters
animationCurve: AnimationCurve
animationLength: float
ProgressCurve ( other )
Signature
ProgressCurve(ProgressCurve other)
Parameters

Properties

AnimationCurve : AnimationCurve
[Get][Set]
Signature
AnimationCurve AnimationCurve
AnimationLength : float
[Get][Set]
Signature
float AnimationLength
TimeProvider : Func< float >
[Get][Set]
Signature
Func<float> TimeProvider

Methods

Copy ( other )
Signature
void Copy(ProgressCurve other)
Parameters
Returns
void
End ()
Signature
void End()
Returns
void
Progress ()
Signature
float Progress()
Returns
float
ProgressIn ( time )
Signature
float ProgressIn(float time)
Parameters
time: float
Returns
float
ProgressTime ()
Signature
float ProgressTime()
Returns
float
SetTimeProvider ( timeProvider )
Sets a function that returns the current time in seconds.
Signature
void SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void
Start ()
Signature
void Start()
Returns
void