Switch

Switch

Works similar to a Button, but holds its state as flipped or not flipped instead of being a momentary push button.

Properties

State boolean

The state of this switch.

InputSource InputSource

An InputSource to be used to trigger the switch's state.

Events

SwitchStateChangeEvent : { State boolean, Type string }

Triggered when the Switch is flipped.
* State is the new state of this switch.
* Type is "SwitchStateChangeEvent".