Keyframe
Keyframe
Single keyframe of AnimationCurve. Note that AnimationCurve relies on Keyframes to be static, so treat them as immutable. Do not change keyframe values unless you understand the implications of doing so.
Kind: global class
Author: Alex Goldring
Copyright: Company Named Limited (c) 2025
- Keyframe
- instance
- .value :
number - .time :
number - .inTangent :
number - .outTangent :
number - .isKeyframe :
boolean - .set(time, value, inTangent, outTangent)
- .copy(other)
- .clone() ⇒
Keyframe - .equals(other) ⇒
boolean - .hash() ⇒
number
- .value :
- static
- instance
keyframe.value : number
Kind: instance property of Keyframe
keyframe.time : number
Timestamp/position for the value
Kind: instance property of Keyframe
keyframe.inTangent : number
Incoming tangent, affects the slope of the curve from previous key
Kind: instance property of Keyframe
keyframe.outTangent : number
Outgoing tangent, affect the slope of the curve from this key to the next key
Kind: instance property of Keyframe
keyframe.isKeyframe : boolean
Useful for type checks
Kind: instance property of Keyframe
Read only: true
keyframe.set(time, value, inTangent, outTangent)
Kind: instance method of Keyframe
| Param | Type |
|---|---|
| time | number |
| value | number |
| inTangent | number |
| outTangent | number |
keyframe.copy(other)
Kind: instance method of Keyframe
| Param | Type |
|---|---|
| other | Keyframe |
keyframe.clone() ⇒ Keyframe
Kind: instance method of Keyframe
keyframe.equals(other) ⇒ boolean
Kind: instance method of Keyframe
| Param | Type |
|---|---|
| other | Keyframe |
keyframe.hash() ⇒ number
Kind: instance method of Keyframe
Keyframe.from(time, value, inTangent, outTangent) ⇒ Keyframe
Kind: static method of Keyframe
| Param | Type | Default |
|---|---|---|
| time | number | |
| value | number | |
| inTangent | number | 0 |
| outTangent | number | 0 |