Docsv2.12.12
Back to API Reference
Class

UniTextWorld

Inherits:UniTextBase

World-space text component. Renders via UniTextWorldBatcher with full Unicode support — bidirectional scripts, complex shaping, color emoji, markup.

Remarks

For Canvas-space (UI) text, use UniText.

Nested Types

public static IReadOnlyList<UniTextWorld> Active{ get }

All currently enabled UniTextWorld instances, maintained by OnEnable / OnDisable. Iterate this instead of FindObjectsOfType.

public int SortingOrder{ get; set }

Gets or sets the sorting order for render ordering.

public int SortingLayerID{ get; set }

Gets or sets the sorting layer ID.

public bool RaycastTarget{ get; set }

When, this text receives pointer events (clicks, hover, interactive ranges) from UniTextWorldRaycaster. Disable for purely decorative text — the raycaster will skip it.

public override void SetAllDirty()
public override void SetVerticesDirty()
public override void SetMaterialDirty()
protected override void OnCanvasHierarchyChanged()
protected override void UpdateGeometry()
protected override void UpdateRendering()
protected override void ClearAllRenderers()
protected override void ApplyVisibility()
protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void OnTransformParentChanged()
protected override Camera ResolveEventCamera()
protected override void HandleAnimation()
public static Action<UniTextWorld> Activated

Raised when a UniTextWorld instance becomes active (OnEnable).

public static Action<UniTextWorld> Deactivated

Raised when a UniTextWorld instance becomes inactive (OnDisable).

public Action<UniTextWorld> RenderDataAvailable

Raised right after the component's mesh has been generated and render data is available through MeshGenerator.CollectRenderData.

public Action<UniTextWorld> RenderDataCleared

Raised when the component's render data should be discarded (e.g. empty text, disabled).

public Action<UniTextWorld> SortingChanged

Raised when SortingOrder or SortingLayerID changes.

public Action<UniTextWorld> ParentChanged

Raised when the component's transform parent changes (may invalidate SortingGroup inheritance).