Back to API Reference
Class
RangeViewportAdapter
abstract
Inherits:MonoBehaviour
Component adapter that consumes UniTextInteractions.ScrollIntoViewRequested without placing Canvas, world-camera or project viewport policy in the interaction router.
Derived Types(2)
Types that inherit from RangeViewportAdapter.
public UniTextBase Text{ get; set }public void Reveal(in RangeScrollRequest request)Reveals one range immediately using this adapter's configured viewport.
Recomputes UniTextBase.VisibleWindow from the configured viewport for glyph and decoration culling.
protected abstract void RevealRange(in RangeScrollRequest request)Implements platform or project-specific reveal behavior.
protected abstract Rect ResolveVisibleWindow()Returns the current viewport in UniText-local coordinates.
protected static Rect TransformRect(RectTransform source, Rect rect, RectTransform target)Transforms an axis-aligned source rect into an axis-aligned target-local rect.
