# Populate(string, TextGenerationSettings)

> Will generate the vertices and other data for the given string with the given settings.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TextRenderingModule

```csharp
public bool Populate(string str, TextGenerationSettings settings)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String to generate.**** (\[TextGenerationSettings]\(/engine/6000.0/script-reference/unityengine/textgenerationsettings)): Settings.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

Will only regenerate if the string AND settings are different from the last execution.
