ColorUsageAttribute

class in UnityEngine

/

Inherits from:PropertyAttribute

Switch to Manual

Description

属性,用于为颜色配置 ColorField 和拾色器的使用情况。

对 Color 使用此属性可将 Color Field 和拾色器配置为显示/隐藏 alpha 值,以及将颜色处理为 HDR 颜色还是正常 LDR 颜色。

Variables

hdr如果设置为 true,则将 Color 处理为 HDR 颜色。
showAlpha如果为 false,则 ColorField 中会隐藏 alpha 栏,并且拾色器中不显示 alpha 值。

Constructors

ColorUsageAttributeColor 字段的属性。用于配置颜色的 GUI。

Inherited members

Variables

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