Skip to content

UI.ColorInput

Name Mandatory Description Default Type
⬅️ Input The value is ignored. None
Output ➡️ The selected color. Color
Variable No The variable that holds the input value. none ColorVar(Color)None

A widget where a color can be selected.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
@wire(ui-wire {
  UI.Window(
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 200
    Height: 200
    Flags: [WindowFlags::NoResize]
    Contents: {
      UI.ColorInput(Variable: color)
    }
  )
} Looped: true)

{ui-behavior: ui-wire}