Patches

Switch

Switch

A Material switch with customizable colors.

Use the Touch button on the component to get the state of the switch.

Switch

  • Enable
  • Position
  • Anchor
  • Tint Color
  • Theme
  • Opacity
  • Turn On
  • Turn Off
  • Disabled
  • On / Off

Enable

A boolean that is true when the switch is displayed.

Position

The position to display the switch.

Anchor

The anchor point to position the switch relative to. See Coordinates for more information.

Tint Color

The color of the switch when turned on.

Theme

The theme of the switch when turned off: light or dark.

Opacity

The opacity of the switch.

Turn On

A pulse that turns the switch on.

Turn Off

A pulse that turns the switch off.

Disabled

A boolean that is true when the switch is disabled.

On / Off

A boolean that is true when the switch is on.