docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct InspectorCurveEditor.CurveState

    A structure holding the state of a single curve in the editor.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public struct InspectorCurveEditor.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
    bool

    handleWidth

    The visual thickness of the curve handles.

    Declaration
    public float handleWidth
    Field Value
    Type Description
    float

    loopInBounds

    Does this curve loop in the defined boudaries?

    Declaration
    public bool loopInBounds
    Field Value
    Type Description
    bool

    minPointCount

    The minimum allowed number of points on the curve.

    Declaration
    public uint minPointCount
    Field Value
    Type Description
    uint

    onlyShowHandlesOnSelection

    Should the handles only be visible when the curve is selected?

    Declaration
    public bool onlyShowHandlesOnSelection
    Field Value
    Type Description
    bool

    showNonEditableHandles

    Should the handles be visible on non-editable curves?

    Declaration
    public bool showNonEditableHandles
    Field Value
    Type Description
    bool

    visible

    Is the curve visible?

    Declaration
    public bool visible
    Field Value
    Type Description
    bool

    width

    The visual thickness of the curve.

    Declaration
    public float width
    Field Value
    Type Description
    float

    zeroKeyConstantValue

    A constant value to use when the curve doesn't have any point.

    Declaration
    public float zeroKeyConstantValue
    Field Value
    Type Description
    float

    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 InspectorCurveEditor.CurveState defaultState { get; }
    Property Value
    Type Description
    InspectorCurveEditor.CurveState

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)