DynamicColor
Optimizes rendering of a VisualElement for frequent color changes, such as a built-in style color being animated.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Field
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
DynamicColor = 8
Remarks
This option fetches color from a GPU buffer to prevent re-tessellating geometry or CPU updates when colors change.
Apply this option on a VisualElement that changes any of the following style properties:
background-colorborder-colorcolorborder-bottom-colorborder-left-colorborder-right-colorborder-top-colortext-colorunity-background-image-tint-color