MarkDirtyRepaint()
Marks that the VisualElement requires a repaint.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
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.