此属性用于为渐变配置 GradientField 和渐变编辑器的使用情况。
Use this attribute on a Gradient to configure the GradientField and Gradient Editor to treat the colors as HDR colors or as normal LDR colors, and as in linear or gamma color space.
colorSpace | The color space the Gradient uses. |
hdr | 如果设置为 true,则渐变使用 HDR 颜色。 |
GradientUsageAttribute | Attribute for gradient fields. Used to configure the GUI for the Gradient Editor. |
order | 可选字段,用于指定多个 DecorationDrawer 应采用的绘制顺序。 |