Class TMP_ColorGradient
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
[ExcludeFromPreset]
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 |