Struct GradientPair | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Struct GradientPair

    Gradient pair container class

    Namespace: UnityEditor.Experimental.EditorVR.Helpers
    Syntax
    [Serializable]
    public struct GradientPair

    Constructors

    GradientPair(Color, Color)

    Declaration
    public GradientPair(Color a, Color b)
    Parameters
    Type Name Description
    Color a
    Color b

    Fields

    a

    First color in the gradient pair

    Declaration
    public Color a
    Field Value
    Type Description
    Color

    b

    Second color in the gradient pair

    Declaration
    public Color b
    Field Value
    Type Description
    Color

    Methods

    Lerp(GradientPair, GradientPair, Single)

    Provide for lerping between two gradient pairs

    Declaration
    public static GradientPair Lerp(GradientPair x, GradientPair y, float t)
    Parameters
    Type Name Description
    GradientPair x

    The first gradient pair

    GradientPair y

    The second gradient pair

    Single t

    Amount for which to lerp between the first and second gradient pair

    Returns
    Type Description
    GradientPair

    The lerped gradient pair result

    Back to top
    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