Docsv3.31.0
Back to API Reference
Class

SpoilerModifier

Tracks whether each spoiler entity has been revealed by activation.

Remarks

The revealed state survives reparsing while the entity identity remains unchanged. Presentation is configured with ordinary modifiers and parameter changes in the same graph.
public bool IsRevealed(in InteractiveRange range)

Returns whether a current spoiler entity is revealed.

public void SetRevealed(in InteractiveRange range, bool value)

Changes one current spoiler entity and drives every rule bound to RevealedSignal.

public void ConcealAll()

Conceals every currently revealed spoiler and animates the configured rules.

protected override void HandleDefaultAction(RangeInteraction interaction)

Performs built-in behavior after all capture, channel, modifier and bubble handlers. It is skipped when a handler calls RangeInteraction.PreventDefault.

protected override void HandleRangesRebuilt()

Reconciles modifier-owned entity state after the router rebuilds final geometry.

public static readonly RangeSignal<bool> RevealedSignal

Typed signal published for every spoiler entity. Project selectors and external drivers can observe the same state as the built-in cover rule.

public SpoilerRevealChangedHandler RevealChanged

Occurs after one current range changes its revealed state.