Class Gradient | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class Gradient

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

    Methods

    linear(Offset, Offset, List<Color>, List<Single>, TileMode, Nullable<uiMatrix3>)

    Declaration
    public static Gradient linear(Offset start, Offset end, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, uiMatrix3? matrix = default(uiMatrix3? ))
    Parameters
    Type Name Description
    Offset start
    Offset end
    List<Color> colors
    List<Single> colorStops
    TileMode tileMode
    Nullable<uiMatrix3> matrix
    Returns
    Type Description
    Gradient

    radial(Offset, Single, List<Color>, List<Single>, TileMode, Nullable<uiMatrix3>)

    Declaration
    public static Gradient radial(Offset center, float radius, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, uiMatrix3? matrix = default(uiMatrix3? ))
    Parameters
    Type Name Description
    Offset center
    Single radius
    List<Color> colors
    List<Single> colorStops
    TileMode tileMode
    Nullable<uiMatrix3> matrix
    Returns
    Type Description
    Gradient

    sweep(Offset, List<Color>, List<Single>, TileMode, Single, Single, Nullable<uiMatrix3>)

    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), uiMatrix3? matrix = default(uiMatrix3? ))
    Parameters
    Type Name Description
    Offset center
    List<Color> colors
    List<Single> colorStops
    TileMode tileMode
    Single startAngle
    Single endAngle
    Nullable<uiMatrix3> 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