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

    Name Description
    color

    The color used to draw the curve.

    editable

    Is the curve editable?

    handleWidth

    The visual thickness of the curve handles.

    loopInBounds

    Does this curve loop in the defined boudaries?

    minPointCount

    The minimum allowed number of points on the curve.

    onlyShowHandlesOnSelection

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

    showNonEditableHandles

    Should the handles be visible on non-editable curves?

    visible

    Is the curve visible?

    width

    The visual thickness of the curve.

    zeroKeyConstantValue

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

    Properties

    Name Description
    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.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)