Class TMP_ColorGradient
Namespace: TMPro
Syntax
[Serializable]
public class TMP_ColorGradient : ScriptableObject
Constructors
TMP_ColorGradient()
Default Constructor which sets each of the colors as white.
Declaration
public TMP_ColorGradient()
TMP_ColorGradient(Color)
Constructor allowing to set the default color of the Color Gradient.
Declaration
public TMP_ColorGradient(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
TMP_ColorGradient(Color, Color, Color, Color)
The vertex colors at the corners of the characters.
Declaration
public TMP_ColorGradient(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 |
colorMode
Declaration
public ColorMode colorMode
Field Value
Type | Description |
---|---|
ColorMode |
topLeft
Declaration
public Color topLeft
Field Value
Type | Description |
---|---|
Color |
topRight
Declaration
public Color topRight
Field Value
Type | Description |
---|---|
Color |