| Parameter | Description |
|---|---|
| clip | The animation clip to modify. |
| binding | The bindings that define the paths and the properties of each curve. |
| keyframes | Array of integer values over time. Setting this to null will remove the curve. |
Adds, modifies, or removes a discrete curve in an animation clip.
Unity has three types of animation curves: float curve, discrete curve and object reference curve. A float curve is a classic curve that animates a float property over time. A discrete curve is a collection of integer keyframes that animates a discrete integer property over time. An object reference curve is a construct that animates an object reference property over time.