Docsv3.31.0
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(Color32 color)

An inline solid-colour paint.

public static PaintRef Named(string swatch)

A paint referencing a named provider swatch.

public string ToToken()
public void FromToken(string token)
public bool Equals(PaintRef other)
public override bool Equals(object obj)
public override int GetHashCode()
public PaintRefKind kind
public Color32 color
public string swatch