Class TMP_ColorGradient
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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 |