Struct InspectorCurveEditor.Settings
A structure holding settings used for the curve editor.
Namespace: UnityEditor.Rendering
Syntax
public struct Settings
Fields
bounds
The boundaries of the curve.
Declaration
public Rect bounds
Field Value
| Type | Description | 
|---|---|
| Rect | 
curvePickingDistance
The distance in pixels to check for curve selection on mouse click.
Declaration
public float curvePickingDistance
Field Value
| Type | Description | 
|---|---|
| Single | 
keyTimeClampingDistance
The distance to clamp keys at compared to the previous and next keys.
Declaration
public float keyTimeClampingDistance
Field Value
| Type | Description | 
|---|---|
| Single | 
padding
The visual padding used when rendering the curve in the inspector.
Declaration
public RectOffset padding
Field Value
| Type | Description | 
|---|---|
| RectOffset | 
selectionColor
The color to use when a curve is selected.
Declaration
public Color selectionColor
Field 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 InspectorCurveEditor.Settings defaultSettings { get; }
Property Value
| Type | Description | 
|---|---|
| InspectorCurveEditor.Settings |