Switch
A toggle switch UI element.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UISwitch" |
AbsoluteSize | any | nil |
AbsolutePosition | any | nil |
Size | UDim2 | UDim2.new(0, 60, 0, 30) |
Value | boolean | false |
OffColor3 | Color3 | Color3.new(0.25, 0.25, 0.25) |
OnColor3 | Color3 | Color3.new(0.3, 0.7, 0.3) |
HandleColor3 | Color3 | Color3.new(1, 1, 1) |
OnValueChanged | any | nil |
Visible | boolean | true |
Functions
onChanged
Arguments
valueReturns
This function returns nothing.
API
instance:onChanged(value)