Back to API Reference
Class

UniText

Implements:ILayoutController

Canvas text rendering component with full Unicode support. Uses CanvasRenderer for rendering within Unity UI Canvas.

Remarks

UniText is a drop-in replacement for Unity's Text/TextMeshPro with proper support for: Bidirectional text (Arabic, Hebrew) via UAX #9 Complex script shaping (Devanagari, Thai, etc.) via HarfBuzz Proper line breaking via UAX #14 Color emoji rendering Extensible markup system via IParseRule (HTML tags, Markdown, custom markers) For world-space text without Canvas, use UniTextWorld instead.

Nested Types

public IEnumerable<CanvasRenderer> CanvasRenderers{ get }

Gets all canvas renderers used for sub-meshes.

protected override void UpdateRendering()
protected override void ClearAllRenderers()
protected override void OnSetDirty()
protected override void OnDeInit()
protected override void OnEnable()
protected override void Sub()
protected override void UnSub()
public override void CrossFadeColor()
public override void CrossFadeAlpha()
protected override void Update()
public override void SetClipRect()

Sets the clipping rectangle for masking, applying to all sub-mesh renderers.

public override void SetClipSoftness()

Sets soft clipping edges for smooth mask transitions on all sub-mesh renderers.

public override void Cull()

Visibility culling against the actual rendered mesh bounds rather than the RectTransform. The rendered glyphs can extend beyond the rect (long words without word wrap, overflow, outline/glow expansion, modifier transforms), so the default Cull — which tests the rect corners — would cull a still-visible mesh once the rect leaves the clip.

public override void RecalculateMasking()

Recalculates stencil masking, releasing cached stencil materials.

protected override void HandleAnimation()
protected override Camera ResolveEventCamera()