Version: 2023.2
LanguageEnglish
  • C#

UsageHints.DynamicColor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Optimizes rendering of a VisualElement for frequent color changes, such as a built-in style color being animated.

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-color
  • border-color
  • color
  • border-bottom-color
  • border-left-color
  • border-right-color
  • border-top-color
  • text-color
  • unity-background-image-tint-color