Class GradientUtils | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class GradientUtils

    Inheritance
    System.Object
    GradientUtils
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public static class GradientUtils

    Methods

    AlphaKeyToVector(GradientAlphaKey)

    Declaration
    public static Vector2 AlphaKeyToVector(GradientAlphaKey key)
    Parameters
    Type Name Description
    GradientAlphaKey key
    Returns
    Type Description
    Vector2

    CheckEquivalency(Gradient, Gradient)

    Declaration
    public static bool CheckEquivalency(Gradient A, Gradient B)
    Parameters
    Type Name Description
    Gradient A
    Gradient B
    Returns
    Type Description
    System.Boolean

    ColorKeyToVector(GradientColorKey)

    Declaration
    public static Vector4 ColorKeyToVector(GradientColorKey key)
    Parameters
    Type Name Description
    GradientColorKey key
    Returns
    Type Description
    Vector4

    GetGradientDeclaration(Gradient, ref ShaderStringBuilder)

    Declaration
    public static void GetGradientDeclaration(Gradient gradient, ref ShaderStringBuilder s)
    Parameters
    Type Name Description
    Gradient gradient
    ShaderStringBuilder s
    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