Back to API Reference
Class
BaseModifier
abstract
Base class for all text modifiers that alter text appearance or behavior.
Remarks
Modifiers are applied to text ranges via markup tags parsed by IParseRule implementations and can modify glyph rendering, colors, animations, or other properties. Lifecycle:
SetOwner is called when the modifier is attached to UniText (sets references only) Apply is called for each text range - lazy initialization on first call Disable is called when text changes Destroy is called when the modifier is removedpublic void SetOwner(UniTextBase uniText)Sets the owner UniText reference. Does NOT initialize buffers or subscribe to events.
public UniTextBase uniTextReference to the UniText component this modifier is attached to.
protected UniTextBuffers buffers