Struct InspectorCurveEditor.CurveState
A structure holding the state of a single curve in the editor.
Namespace: UnityEditor.Rendering
Syntax
public struct CurveState
Fields
color
The color used to draw the curve.
Declaration
public Color color
Field Value
Type | Description |
---|---|
Color |
editable
Is the curve editable?
Declaration
public bool editable
Field Value
Type | Description |
---|---|
Boolean |
handleWidth
The visual thickness of the curve handles.
Declaration
public float handleWidth
Field Value
Type | Description |
---|---|
Single |
loopInBounds
Does this curve loop in the defined boudaries?
Declaration
public bool loopInBounds
Field Value
Type | Description |
---|---|
Boolean |
minPointCount
The minimum allowed number of points on the curve.
Declaration
public uint minPointCount
Field Value
Type | Description |
---|---|
UInt32 |
onlyShowHandlesOnSelection
Should the handles only be visible when the curve is selected?
Declaration
public bool onlyShowHandlesOnSelection
Field Value
Type | Description |
---|---|
Boolean |
showNonEditableHandles
Should the handles be visible on non-editable curves?
Declaration
public bool showNonEditableHandles
Field Value
Type | Description |
---|---|
Boolean |
visible
Is the curve visible?
Declaration
public bool visible
Field Value
Type | Description |
---|---|
Boolean |
width
The visual thickness of the curve.
Declaration
public float width
Field Value
Type | Description |
---|---|
Single |
zeroKeyConstantValue
A constant value to use when the curve doesn't have any point.
Declaration
public float zeroKeyConstantValue
Field 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 |