Overview
Reveals text one character at a time. It creates the familiar typewriter effect
from RPG dialogue boxes by switching visibility in a TextLayout. The downstream
text_rasterize performs image rendering.
Usage tips
- The go-to chain is
text_layout ā text_reveal_by_glyph(promote progress to an input pin š and connect time_source)ā text_rasterize ā animation_render. - For crisp character-by-character steps, drive progress with steps based on
math_func(Floor). Smooth progress can make character timings look uneven. - Limit the range with
first_glyph/last_glyphfor split effects such as revealing only the second half later.
Related nodes
text_layoutā required upstreamtext_animate_by_glyphā controls motion instead of visibilitytext_rasterize/text_outlineā render to an imagetime_sourceā drives progress
How to think about it
TextLayoutis the structure describing where characters are.Text Reveal By Glyphdecides which of those characters are shown.- It does not create an image yet.
- Finish by rendering with
TextRasterizeorTextOutline.
About glyphs
- In v1, you can effectively treat a
glyphas one character. - Therefore,
First Glyph = 0means the first character and1means the second. - Think of
First Glyph/Last Glyphas character indices.
Behavior
- Only the range from
first_glyphthroughlast_glyphis revealed. - Characters outside the range are hidden.
- With
reverse = true, the same range reveals from the end. delaypostpones the entire start. At0.5, nothing appears until progress reaches halfway.- A glyph already marked
visible = falseremains hidden after this node.
Progress
progressis always normalized to0..1.- If
11characters are selected betweenFirst GlyphandLast Glyph, one character step is1 / 11 = 0.0909.... - Advance
progressby this step to reveal one character at a constant interval. - Using
0..1rather than the character count makes the same animation controls easy to reuse when text length changes.
Inspector helper display
Text Reveal Helperdisplays:- total character count,
- character count in the selected range,
- the one-character step for the selected range, and
- the number of visible characters at the current progress.
- The upper limit of
Last Glyphupdates automatically to match the actual character count of the inputTextLayout. - Inspect glyph index / bbox for the output
TextLayoutunderText Layout (Debug)in the Inspector.
Examples
[Text Input] -> [Text Layout] -> [Text Reveal By Glyph] -> [Text Rasterize] -> [Preview]
[Text Input] -> [Text Layout] -> [Text Reveal By Glyph]
[TimeSource] ----------------------^ progress