Back to API Reference
Struct

PaintRef

sealed

A paint layer's paint choice: an inline colour, a named provider swatch, or the layer default. This is the authored value on the modifier (and the default when markup omits the paint); the resolved runtime appearance is TextPaint.

public bool IsDefault{ get }

No explicit paint — the layer falls back to its own default.

public static PaintRef Solid()

An inline solid-colour paint.

public static PaintRef Named()

A paint referencing a named provider swatch.

public string ToToken()
public void FromToken()
public bool Equals()
public override bool Equals()
public override int GetHashCode()
public PaintRefKind kind
public Color32 color
public string swatch