# MarkDirtyText()

> Marks that the TextElement forces a layout and repaint.

## Definition

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

```csharp
public void MarkDirtyText()
```

### Remarks

Call this method if you modify assets that influence text generation at runtime, such as a FontAsset.
