docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct VertexGradient

    TMP custom data type to represent 32 bit characters.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    [Serializable]
    public struct VertexGradient

    Constructors

    VertexGradient(Color)

    Declaration
    public VertexGradient(Color color)
    Parameters
    Type Name Description
    Color color

    VertexGradient(Color, Color, Color, Color)

    The vertex colors at the corners of the characters.

    Declaration
    public VertexGradient(Color color0, Color color1, Color color2, Color color3)
    Parameters
    Type Name Description
    Color color0

    Top left color.

    Color color1

    Top right color.

    Color color2

    Bottom left color.

    Color color3

    Bottom right color.

    Fields

    bottomLeft

    Declaration
    public Color bottomLeft
    Field Value
    Type Description
    Color

    bottomRight

    Declaration
    public Color bottomRight
    Field Value
    Type Description
    Color

    topLeft

    Declaration
    public Color topLeft
    Field Value
    Type Description
    Color

    topRight

    Declaration
    public Color topRight
    Field Value
    Type Description
    Color
    In This Article
    Back to top
    Copyright © 2024 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)