Skip to main content

DurationCurve

A class in Root.Township, the global namespace.

A serializable animation curve paired with a duration in seconds.

Constructors​

MemberWhat it is
DurationCurve(AnimationCurve curve, float duration)Creates a DurationCurve from curve and duration.

Fields​

2 private and internal fields
MemberWhat it is
private AnimationCurve curveBacking field for Curve.
private float durationBacking field for Duration, in seconds.

Properties​

MemberWhat it is
AnimationCurve Curve { get; }The curve.
float Duration { get; }How long the curve plays for, in seconds.

Used in​

Members of other types that take, return or hold a DurationCurve: