GradientUsageAttribute

class in UnityEngine

/

Inherits from:PropertyAttribute

Switch to Manual

Description

Attribute used to configure the usage of the GradientField and Gradient Editor for a gradient.

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.

Variables

hdrIf set to true the Gradient uses HDR colors.

Constructors

GradientUsageAttributeAttribute for Gradient fields. Used for configuring the GUI for the Gradient Editor.

Inherited members

Variables

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