Back to API Reference
Struct

RevealGlyphInfo

sealed

Reveal state of one rendered glyph, delivered mid mesh build. Mutate the current quad through generator (faceBaseIdx, Vertices, Colors) to animate its appearance any way you want.

public float Progress{ get }

Normalized appearance state, 1 being the settled glyph in both directions: an appearing glyph runs 0 → 1, a hiding one 1 → 0. Serialized handlers receive their one-shot timeline; GlyphRevealing subscribers receive the fractional frontier envelope derived from front minus ordinal.

[ctor]public RevealGlyphInfo()

Creates the state of a glyph riding the frontier envelope, taking Progress from front minus ordinal.

public RevealGlyphInfo WithProgress()

The same glyph on an explicit timeline — what a handler wrapping other handlers gives a child to run progress of its own. Keep 1 as the settled glyph, or the child never resolves to the identity transform.

public RevealGlyphInfo WithFront()

The same glyph against a restated frontier, its Progress derived from the new front the way the envelope derives it — what a handler that re-times the frontier itself, rather than one glyph's timeline, hands on.

public readonly UniTextMeshGenerator generator

Mesh generator mid-build, positioned on the glyph's quad.

public readonly UniTextBase text

The text being built. Reach the layout through it — GetRangeBounds over unit gives the unit's settled box, which is what an effect that moves a whole word or line as one body needs.

public readonly int cluster

Codepoint index of the glyph's cluster.

public readonly TextRange unit

Codepoint span of the unit the glyph belongs to — every cluster of it shares this glyph's ordinal and Progress. One cluster wide while the frontier counts in clusters.

public readonly int ordinal

Reveal order of the glyph's cluster within its range, 0-based.

public readonly int count

Revealable clusters in the range.

public readonly float front

Fractional reveal frontier in ordinal units, growing 0 → count.

public readonly bool hiding

Whether the glyph is leaving the visible part of its range rather than entering it.