Docsv3.31.0
Back to API Reference
Struct

SpriteColorRef

sealed
Implements:IMarkupValue

An inline sprite's colour choice: its own, the component's, or an explicit override. Serializes to a single markup token — empty for original, i for inherit, #RRGGBBAA for override.

public string ToToken()
public void FromToken(string token)
public static SpriteColorRef Parse(ReadOnlySpan<char> token)

Single grammar shared by markup parsing and the clipboard token form.

public SpriteColorSource source
public Color32 color