---
title: ToUIVertices()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/generation/textmesh/touivertices
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/generation/textmesh/touivertices.md
last_updated: 2026-10-07
generated_at: 2026-11-11T10:23:32.504Z
locale: en-us
---

# ToUIVertices()

> Flattens every sub-mesh into a single list of vertices, for consumers of UIVertex geometry such as custom UI Graphics.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TextCore.Generation](/engine/7000.0/script-reference/unityengine/textcore/generation.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

```csharp
public IList<UIVertex> ToUIVertices()
```

### Returns

| Type                                                                                          | Description                                          |
| --------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [IList\<UIVertex>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) | 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](/engine/7000.0/script-reference/unityengine/textcore/generation/textmesh/fillmesh.md) and [TextMesh.materials](/engine/7000.0/script-reference/unityengine/textcore/generation/textmesh/materials.md) when it is needed.
