文档

Unity Engine

Unity Engine

MarkDirtyRepaint()

Triggers a repaint of the VisualElement on the next frame. This method is called internally when a change occurs that requires a repaint, such as when UIElements. BaseField<TValueType>.value is changed or the text in a Label. If you are implementing a custom control, you can call this method to trigger a repaint when a change occurs that requires a repaint such as when using VisualElement.generateVisualContent to render a mesh and the mesh data has now changed.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void MarkDirtyRepaint()