# FillMesh(Mesh)

> Fills the mesh with the generated geometry, one sub-mesh per material.

## Definition

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

```csharp
public void FillMesh(Mesh mesh)
```

### Parameters

**** (\[Mesh]\(/engine/6000.7/script-reference/unityengine/mesh)): The mesh to fill. Its previous content is cleared.

### Remarks

Render sub-mesh i with [TextMesh.materials](/engine/6000.7/script-reference/unityengine/textcore/generation/textmesh/materials.md)\[i].
