Version: 2021.2

GradientUsageAttribute

class in UnityEngine

/

继承自:PropertyAttribute

切换到手册

描述

此属性用于为渐变配置 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.

变量

colorSpaceThe color space the Gradient uses.
hdr如果设置为 true,则渐变使用 HDR 颜色。

构造函数

GradientUsageAttributeAttribute for gradient fields. Used to configure the GUI for the Gradient Editor.

继承的成员

变量

order可选字段,用于指定多个 DecorationDrawer 应采用的绘制顺序。