Class AnimationCurveExtensions
Extension methods for Unity's AnimationCurve class
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class AnimationCurveExtensions
Methods
Duration(AnimationCurve)
Returns the absolute duration of the curve from first to last key frame
Declaration
public static float Duration(this AnimationCurve curve)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | curve | The animation curve to check duration of. |
Returns
Type | Description |
---|---|
Single | Returns 0 if the curve is null or has less than 1 frame, otherwise returns time difference between first and last frame. |
Duration(AnimationCurve)
Returns the absolute duration of the curve from first to last key frame
Declaration
public static float Duration(this AnimationCurve curve)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | curve | The animation curve to check duration of. |
Returns
Type | Description |
---|---|
Single | Returns 0 if the curve is null or has less than 1 frame, otherwise returns time difference between first and last frame. |