Back to API Reference
Class
SpoilerModifier
Inherits:InteractiveModifier
Hides text ranges behind an opaque decoration until activated and exposes the revealed state as a typed range signal for arbitrary modifier, property or externally driven rules.
Remarks
The revealed set is keyed by stable source identity, so unchanged entities keep their state across parsing and layout. The default presentation is an ordinary transient HighlightModifier above the text; replace or extend
Rules to use blur, glyph modifiers, custom geometry or a project animation driver.Example
csharp
public static readonly RangeSignal<bool> RevealedSignalTyped signal published for every spoiler entity. Project selectors and external drivers can observe the same state as the built-in cover rule.
