# MarkDirtyRepaint()

> Marks that the VisualElement requires a repaint.

## Definition

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

```csharp
public void MarkDirtyRepaint()
```

### Remarks

Don't call this method when you change the styles or properties of built-in controls, as this is automatically called when necessary. However, you might need to call this method when your element has a custom [VisualElement.generateVisualContent](/engine/6000.3/script-reference/unityengine/uielements/visualelement/generatevisualcontent.md) that needs to be triggered, such as after you change a custom style or property.
