docs.unity3d.com
    Show / Hide Table of Contents

    Struct InspectorCurveEditor.Settings

    A structure holding settings used for the curve editor.

    Namespace: UnityEditor.Rendering
    Syntax
    public struct 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
    Single

    keyTimeClampingDistance

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

    Declaration
    public float keyTimeClampingDistance
    Field Value
    Type Description
    Single

    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 readonly InspectorCurveEditor.Settings defaultSettings { get; }
    Property Value
    Type Description
    InspectorCurveEditor.Settings

    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