Back to API Reference
Class
InteractiveModifier
abstract
Implements:IInteractiveRangeHandler
Base class for modifiers that create interactive (clickable/hoverable) text ranges.
Remarks
Inherit from this class to create custom interactive modifiers like links, hashtags, mentions, or any other clickable text elements. This class automatically: Registers/unregisters with InteractiveRangeRegistry Stores ranges in a PooledArrayAttribute<T> Delegates click/hover events to subclass implementations
Example
csharp
public TextHighlighter Highlighter{ get; set }Gets or sets the per-modifier text highlighter. When null, the global UniText highlighter is used as fallback.
protected virtual void HandleRangeClicked(InteractiveRange range, TextHitResult hit)Called when the user clicks on a range owned by this modifier.
protected virtual void HandleRangeEntered(InteractiveRange range, TextHitResult hit)Called when the pointer enters a range owned by this modifier (desktop only).
protected virtual void HandleRangeExited(InteractiveRange range)Called when the pointer exits a range owned by this modifier (desktop only).
