Back to API Reference
Struct

MaterialModifier.MaterialGlyphContext

sealed

Per-glyph context passed to glyphDataWriter and OnWriteGlyphUV.

[ctor]public MaterialGlyphContext()
public readonly int cluster
public readonly int glyphIndexInSelection

Monotonic 0-based index of this glyph across all ranges selected by this modifier in the current rebuild. Useful for staggered per-glyph animations. Not reset between ranges.

public readonly float cursorX
public readonly float baselineY
public readonly float glyphHeight
public readonly string parameter