Back to API Reference
Class

ColorModifier

Applies color to text ranges using hex codes or named colors.

Remarks

Parameter: a color value in hex or by name. Supported formats: - Hex: #RGB, #RRGGBB, #RRGGBBAA - Named colors: white, black, red, green, blue, yellow, cyan, magenta, orange, purple, gray, lime, brown, pink, navy, teal, olive, maroon, silver, gold The alpha channel of the color parameter is multiplied with the component's base alpha (per W3C alpha compositing). A fully opaque parameter inherits the component alpha; a semi-transparent parameter scales it further.
protected string AttributeKey{ get }
protected override Action GetOnGlyphCallback()
protected override void DoApply()
public static bool TryGetColor(UniTextBuffers buffers, int cluster, Color32 color)

Tries to get the custom color for a cluster from the specified buffers.

See Also