Struct InspectorCurveEditor.Selection
A structure holding the state of the current selection.
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
public struct SelectionConstructors
Selection(SerializedProperty, Int32, Nullable<Keyframe>)
Creates a new selection state.
Declaration
public Selection(SerializedProperty curve, int keyframeIndex, Keyframe? keyframe)Parameters
| Type | Name | Description | 
|---|---|---|
| SerializedProperty | curve | A reference to the serialized curve. | 
| Int32 | keyframeIndex | The currently selected key index, or -1 if none is selected. | 
| Nullable<Keyframe> | keyframe | The key itself, or  | 
Fields
curve
A reference to the serialized AnimationCurve.
Declaration
public SerializedProperty curveField Value
| Type | Description | 
|---|---|
| SerializedProperty | 
keyframe
The key itself, or null if none is selected.
Declaration
public Keyframe? keyframeField Value
| Type | Description | 
|---|---|
| Nullable<Keyframe> | 
keyframeIndex
The currently selected key index, or -1 if none is selected.
Declaration
public int keyframeIndexField Value
| Type | Description | 
|---|---|
| Int32 |