# PopulateWithErrors(string, TextGenerationSettings, GameObject)

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

## Definition

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

```csharp
public bool PopulateWithErrors(string str, TextGenerationSettings settings, GameObject context)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String to generate.**** (\[TextGenerationSettings]\(/engine/6000.6/script-reference/unityengine/textgenerationsettings)): Generation settings.**** (\[GameObject]\(/engine/6000.6/script-reference/unityengine/gameobject)): The object used as context of the error log message, if necessary.

### Returns

| Type                                                          | Description                                           |
| ------------------------------------------------------------- | ----------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the generation is a success, false otherwise. |

### Remarks

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