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

    Class Gradient

    Inheritance
    System.Object
    PaintShader
    Gradient
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class Gradient : PaintShader

    Methods

    linear(Offset, Offset, List<Color>, List<Single>, TileMode, Matrix3)

    Declaration
    public static Gradient linear(Offset start, Offset end, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, Matrix3 matrix = null)
    Parameters
    Type Name Description
    Offset start
    Offset end
    System.Collections.Generic.List<Color> colors
    System.Collections.Generic.List<System.Single> colorStops
    TileMode tileMode
    Matrix3 matrix
    Returns
    Type Description
    Gradient

    radial(Offset, Single, List<Color>, List<Single>, TileMode, Matrix3)

    Declaration
    public static Gradient radial(Offset center, float radius, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, Matrix3 matrix = null)
    Parameters
    Type Name Description
    Offset center
    System.Single radius
    System.Collections.Generic.List<Color> colors
    System.Collections.Generic.List<System.Single> colorStops
    TileMode tileMode
    Matrix3 matrix
    Returns
    Type Description
    Gradient

    sweep(Offset, List<Color>, List<Single>, TileMode, Single, Single, Matrix3)

    Declaration
    public static Gradient sweep(Offset center, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, float startAngle = 0F, float endAngle = default(float), Matrix3 matrix = null)
    Parameters
    Type Name Description
    Offset center
    System.Collections.Generic.List<Color> colors
    System.Collections.Generic.List<System.Single> colorStops
    TileMode tileMode
    System.Single startAngle
    System.Single endAngle
    Matrix3 matrix
    Returns
    Type Description
    Gradient
    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