Method Bake
Bake(AnimationCurve, float, InterpolationMode)
Declaration
public static int Bake(AnimationCurve curve, float frameRate, AnimationCurveBake.InterpolationMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimationCurve | curve | |
| float | frameRate | |
| AnimationCurveBake.InterpolationMode | mode |
Returns
| Type | Description |
|---|---|
| int |
Bake(ref Keyframe[], float, InterpolationMode)
Declaration
public static int Bake(ref Keyframe[] keys, float frameRate, AnimationCurveBake.InterpolationMode mode = InterpolationMode.Auto)
Parameters
| Type | Name | Description |
|---|---|---|
| Keyframe[] | keys | |
| float | frameRate | |
| AnimationCurveBake.InterpolationMode | mode |
Returns
| Type | Description |
|---|---|
| int |