Struct InspectorCurveEditor.CurveState
A structure holding the state of a single curve in the editor.
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
public struct CurveStateFields
color
The color used to draw the curve.
Declaration
public Color colorField Value
| Type | Description | 
|---|---|
| Color | 
editable
Is the curve editable?
Declaration
public bool editableField Value
| Type | Description | 
|---|---|
| Boolean | 
handleWidth
The visual thickness of the curve handles.
Declaration
public float handleWidthField Value
| Type | Description | 
|---|---|
| Single | 
loopInBounds
Does this curve loop in the defined boudaries?
Declaration
public bool loopInBoundsField Value
| Type | Description | 
|---|---|
| Boolean | 
minPointCount
The minimum allowed number of points on the curve.
Declaration
public uint minPointCountField Value
| Type | Description | 
|---|---|
| UInt32 | 
onlyShowHandlesOnSelection
Should the handles only be visible when the curve is selected?
Declaration
public bool onlyShowHandlesOnSelectionField Value
| Type | Description | 
|---|---|
| Boolean | 
showNonEditableHandles
Should the handles be visible on non-editable curves?
Declaration
public bool showNonEditableHandlesField Value
| Type | Description | 
|---|---|
| Boolean | 
visible
Is the curve visible?
Declaration
public bool visibleField Value
| Type | Description | 
|---|---|
| Boolean | 
width
The visual thickness of the curve.
Declaration
public float widthField Value
| Type | Description | 
|---|---|
| Single | 
zeroKeyConstantValue
A constant value to use when the curve doesn't have any point.
Declaration
public float zeroKeyConstantValueField Value
| Type | Description | 
|---|---|
| Single | 
Properties
defaultState
Default curve state.
- visible is set to true.
- editable is set to true.
- minPointCount is set to 2.
- zeroKeyConstantValue is set to 0.
- color is set to white.
- width is set to 2.
- handleWidth is set to 2.
- showNonEditableHandles is set to true.
- onlyShowHandlesOnSelection is set to false.
- loopInBounds is set to false.
Declaration
public static readonly InspectorCurveEditor.CurveState defaultState { get; }Property Value
| Type | Description | 
|---|---|
| InspectorCurveEditor.CurveState |