Summary

Describes a curve, which can have multiple key frames.

Constructors

Curve

Fields

Frames A list of keyframes or points on the curve.

Properties

Item
Length Amount of key frames or points on the curve.
TimeRange The range of this curve. This affects looping.
ValueRange The value range. This should affect nothing but what it looks like in the editor.

Methods

AddOrReplacePoint Add given keyframe to this curve.
AddPoint Add a new keyframe at given position to this curve.
Evaluate Returns the value on the curve at given time position.
EvaluateDelta Like evaluate but takes a normalized time between 0 and 1 and returns a normalized value between 0 and 1
Fix If the curve is broken in some way, we can fix it here. Ensures correct time and value ranges, and that the curve has at least one point.
RemoveAtTime Remove all of the frames at the current time
Reverse Make a copy of this curve that is reversed (If input eases from 0 to 1 then output will ease from 1 to 0)
Sort Make sure we're all sorted by time
UpdateTimeRange
UpdateValueRange
WithFrames

Static Fields

Ease A curve that eases from 0 to 1
EaseIn A curve that eases in from 0 to 1
EaseOut A curve that eases out from 0 to 1
Linear A curve that linearly interpolates from 0 to 1
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.