docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GradientExtensions

    Extensions for the Gradient class.

    Inheritance
    object
    GradientExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public static class GradientExtensions

    Methods

    TryParse(string, out Gradient)

    Try to parse a string to a Gradient.

    Declaration
    public static bool TryParse(string value, out Gradient v)
    Parameters
    Type Name Description
    string value

    The string to parse.

    Gradient v

    The parsed Gradient.

    Returns
    Type Description
    bool

    True if the string was successfully parsed, false otherwise.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if the string is null.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)