Table of Contents

Class FlexalonAnimationCurveUtility

Namespace
Flexalon
Assembly
Flexalon.dll

Helpers for creating keyframe and transition curves.

public static class FlexalonAnimationCurveUtility
Inheritance
object
FlexalonAnimationCurveUtility

Methods

Create(FlexalonAnimationEasing, float)

Creates a curve that goes from 0 to 1 over duration seconds, using an easing preset. A duration of zero holds at 1.

public static AnimationCurve Create(FlexalonAnimationEasing easing, float duration)

Parameters

easing FlexalonAnimationEasing
duration float

Returns

AnimationCurve

GetDuration(AnimationCurve)

Returns the time of the curve's last key, or zero for an empty curve.

public static float GetDuration(AnimationCurve curve)

Parameters

curve AnimationCurve

Returns

float

SetDuration(AnimationCurve, float)

Returns a copy of the curve stretched to last duration seconds.

public static AnimationCurve SetDuration(AnimationCurve curve, float duration)

Parameters

curve AnimationCurve
duration float

Returns

AnimationCurve