VisualShaderNodeColorParameter
A Color parameter to be used within the visual shader graph.
A Color parameter to be used within the visual shader graph.
Translated to uniform vec4 in the shader language.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeColorParameterConstructor
public VisualShaderNodeColorParameter();Properties2
DefaultValueProperty
public Color DefaultValue { get; set; }RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.
DefaultValueEnabledProperty
public bool DefaultValueEnabled { get; set; }Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.
Methods4
GetDefaultValueColor
public Color GetDefaultValue();RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.
ColorIsDefaultValueEnabledbool
public bool IsDefaultValueEnabled();Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.
boolSetDefaultValuevoid
public void SetDefaultValue(Color value);RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.
| Name | Type | Default |
|---|---|---|
value | Color | — |
valueRGBA color; Alpha is not automatically wired.
SetDefaultValueEnabledvoid
public void SetDefaultValueEnabled(bool enabled);Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.
| Name | Type | Default |
|---|---|---|
enabled | bool | — |
enabledtrue to generate an initializer from DefaultValue.