# CurveFilterOptions

> The keyframe reduction settings for compressing animation curves.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Animations](/engine/6000.6/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct CurveFilterOptions
```

## Remarks

Use the CurveFilterOptions when saving a recording to a clip. A value of 0.5 gives a light compression. Additional Resources: [GameObjectRecorder.SaveToClip](/engine/6000.6/script-reference/unityeditor/animations/gameobjectrecorder/savetoclip.md).

## Fields

| Value                                                                                                               | Description                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [floatError](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/floaterror.md)               | The amount the float animation curve is allowed to deviate from its original curve. This amount is expressed as a percentage: a positive value between 0 and 100.                        |
| [keyframeReduction](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/keyframereduction.md) | Whether to apply keyframe reduction.                                                                                                                                                     |
| [positionError](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/positionerror.md)         | The amount the position animation curve is allowed to deviate from its original curve. This amount is expressed as a percentage: a positive value between 0 and 100.                     |
| [rotationError](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/rotationerror.md)         | The amount the rotation animation curve is allowed to deviate from its original curve. This amount is expressed as a number of degrees. It should be a positive value between 0 and 180. |
| [scaleError](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/scaleerror.md)               | The amount the scale animation curve is allowed to deviate from its original curve. This amount is expressed as a percentage: a positive value between 0 and 100.                        |
| [unrollRotation](/engine/6000.6/script-reference/unityeditor/animations/curvefilteroptions/unrollrotation.md)       | Whether to apply rotation unrolling. This option is enabled by default.                                                                                                                  |
