Back to API Reference
Struct
UniTextRenderData
sealed
Raw geometry slice describing a single text/emoji/sub-mesh render segment.
Remarks
Holds references to pooled vertex/UV/color/index arrays plus offset+count into them. The consumer (canvas:
UpdateSubMeshes; world: UniTextWorldBatcher) does whatever it needs with this data — either uploads into a reusable Mesh for CanvasRenderer, or copies into its combined-mesh buffers for world-space batching. Array references are valid only until the next collect cycle on the same generator — pooled buffers can be returned or regrown. Consumers must read/copy immediately and not retain references across frames.public Material materialOverrideOptional custom material. When, the renderer uses the default SDF/MSDF or emoji material for this fontId.
public GlyphAtlas atlasOverrideOptional atlas override for materialOverride. When, the renderer uses the default atlas for this fontId.
public RenderOrder orderRender pass this segment belongs to (sorts relative to base text).
public Vector3[] verticesVertex positions array (pooled). Read [vertexOffset, vertexOffset+vertexCount).
public Vector4[] uvs0UV0 array (pooled). Must always be valid when vertexCount > 0.
public Vector4[] uvs1UV1 array (pooled). or ignored when hasUv1 is false.
public Vector4[] uvs2UV2 array (pooled). or ignored when hasUv2 is false.
public Vector4[] uvs3UV3 array (pooled). or ignored when hasUv3 is false.
public Color32[] colorsVertex colors array (pooled).
