docs.unity3d.com
    Show / Hide Table of Contents

    Struct InspectorCurveEditor.Selection

    A structure holding the state of the current selection.

    Namespace: UnityEditor.Rendering
    Syntax
    public struct Selection

    Constructors

    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 null if none is selected.

    Fields

    curve

    A reference to the serialized AnimationCurve.

    Declaration
    public SerializedProperty curve
    Field Value
    Type Description
    SerializedProperty

    keyframe

    The key itself, or null if none is selected.

    Declaration
    public Keyframe? keyframe
    Field Value
    Type Description
    Nullable<Keyframe>

    keyframeIndex

    The currently selected key index, or -1 if none is selected.

    Declaration
    public int keyframeIndex
    Field Value
    Type Description
    Int32

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023