Skip to content

color

Color parameter

Shader Equivalent

uniform float4 parameter_name;

Example

{
  "type": "color",
  "name": "my_color",
  "default": "#99ABCDEF"
}

Properties

Property
Type Required If absent Description
default any Yes - Format: #RRGGBB or #AARRGGBB If alpha is not present, full opacity will be used
name string Yes - Name of the field. It must be the same as the associated variable in the shader.
type "color" Yes - -
description string No - Description of the field. It will be shown in the UI.
devmode boolean No false If set to true, this field will only be available in the property UI if the developer mode is active.
label string No "Same as name" The label of the field in the UI. If not set, the name will be used.