ToUIVertices()
Flattens every sub-mesh into a single list of vertices, for consumers of UIVertex geometry such as custom UI Graphics.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.TextCore.Generation
- Assembly: UnityEngine.TextCoreTextEngineModule
public IList<UIVertex> ToUIVertices()
Returns
Type | Description |
|---|---|
| IList<UIVertex> | The vertices of every sub-mesh, in generation order. |
Remarks
The per-material split required to correctly render SDF text is not preserved; use TextMesh.FillMesh and _materials when it is needed.