Struct InspectorCurveEditor.Settings
A structure holding settings used for the curve editor.
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
public struct SettingsFields
bounds
The boundaries of the curve.
Declaration
public Rect boundsField Value
| Type | Description | 
|---|---|
| Rect | 
curvePickingDistance
The distance in pixels to check for curve selection on mouse click.
Declaration
public float curvePickingDistanceField Value
| Type | Description | 
|---|---|
| Single | 
keyTimeClampingDistance
The distance to clamp keys at compared to the previous and next keys.
Declaration
public float keyTimeClampingDistanceField Value
| Type | Description | 
|---|---|
| Single | 
padding
The visual padding used when rendering the curve in the inspector.
Declaration
public RectOffset paddingField Value
| Type | Description | 
|---|---|
| RectOffset | 
selectionColor
The color to use when a curve is selected.
Declaration
public Color selectionColorField Value
| Type | Description | 
|---|---|
| Color | 
Properties
defaultSettings
Default settings.
- bounds are set to (0, 0, 1, 1).
- padding is set to (0, 0, 0, 0).
- selectionColor is set to yellow.
- curvePickingDistance is set to 6 pixels.
- keyTimeClampingDistance is set to 1e-4.
Declaration
public static readonly InspectorCurveEditor.Settings defaultSettings { get; }Property Value
| Type | Description | 
|---|---|
| InspectorCurveEditor.Settings |