BaseRangeDecorationModifier
Base class for modifier-authored geometry attached to final visual text ranges. It owns range accumulation, paint resolution, renderer handles and main-thread rebuild timing; subclasses only translate one immutable RangeDecorationContext into a RangeMeshWriter.
Remarks
Derived Types(1)
Types that inherit from BaseRangeDecorationModifier.
protected IPaintProvider DecorationPaintProvider{ get }Paint catalog used by ResolveDecorationPaint.
Whether this modifier consumes exact final quads through RangeDecorationContext.VisualGlyphs.
protected override void OnApply(in RangeApplyContext context)protected virtual void OnDecorationApply(in RangeApplyContext context)Observes one worker-side range application after the base has retained its immutable data.
protected abstract void OnBuildDecoration(in RangeDecorationContext context, ref RangeMeshWriter writer)Builds final geometry for one applied entity segment.
protected RangeDecorationPaint ResolveDecorationPaint(ref ParameterReader reader, in PaintRef authored, Color32 defaultColor, PaintMapping mapping, PaintProjectionKind shape, PaintFit fit, float angle, float scale, Vector2 offset)Resolves an optional leading paint token or the authored field, applies the common projection override chain, and retains any gradient-ramp row until the next decoration rebuild.
protected TextPaint ResolveDecorationPaintSource(ref ParameterReader reader, in PaintRef authored, Color32 defaultColor, out int rampRow)Resolves only the optional leading paint token or authored paint field.
protected RangeDecorationPaint CreateDecorationPaint(in TextPaint paint, int rampRow)Wraps a resolved paint and its owned ramp row for the geometry writer.
