Keyframe
A single keyframe that can be injected into an animation curve.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public struct Keyframe
Constructors
Constructor | Description |
|---|---|
| Keyframe(System.Single,System.Single) | Create a keyframe. |
| Keyframe(System.Single,System.Single,System.Single,System.Single) | Create a keyframe. |
| Keyframe(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single) | Create a keyframe. |
Properties
Property | Description |
|---|---|
| inTangent | Sets the incoming tangent for this key. The incoming tangent affects the slope of the curve from the previous key to this key. |
| inWeight | Sets the incoming weight for this key. The incoming weight affects the slope of the curve from the previous key to this key. |
| outTangent | Sets the outgoing tangent for this key. The outgoing tangent affects the slope of the curve from this key to the next key. |
| outWeight | Sets the outgoing weight for this key. The outgoing weight affects the slope of the curve from this key to the next key. |
| time | The time of the keyframe. |
| value | The value of the curve at keyframe. |
| weightedMode | Weighted mode for the keyframe. |