Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MarkDirtyRepaint()

Marks that the VisualElement requires a repaint.
Read time 1 minuteLast updated 7 days ago

Definition

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 that needs to be triggered, such as after you change a custom style or property.