docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct InspectorCurveEditor.Settings

    A structure holding settings used for the curve 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.Settings

    Fields

    bounds

    The boundaries of the curve.

    Declaration
    public Rect bounds
    Field Value
    Type Description
    Rect

    curvePickingDistance

    The distance in pixels to check for curve selection on mouse click.

    Declaration
    public float curvePickingDistance
    Field Value
    Type Description
    float

    keyTimeClampingDistance

    The distance to clamp keys at compared to the previous and next keys.

    Declaration
    public float keyTimeClampingDistance
    Field Value
    Type Description
    float

    padding

    The visual padding used when rendering the curve in the inspector.

    Declaration
    public RectOffset padding
    Field Value
    Type Description
    RectOffset

    selectionColor

    The color to use when a curve is selected.

    Declaration
    public Color selectionColor
    Field Value
    Type Description
    Color

    Properties

    defaultSettings

    Default settings.

    • bounds are set to (0, 0, 1, 1).
    • padding is set to (0, 0, 0, 0).
    • selectionColor is set to yellow.
    • curvePickingDistance is set to 6 pixels.
    • keyTimeClampingDistance is set to 1e-4.
    Declaration
    public static InspectorCurveEditor.Settings defaultSettings { get; }
    Property Value
    Type Description
    InspectorCurveEditor.Settings

    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)