5.4 – Switch

On Value Change
On Value Change property is an Action List which is triggered when the value of switch changes.

Label Width
Label Width property is used to determine the width of the field label. If a value between 0 and 2 is given then label width will be calculated relatively to the switch’s total width else label width will be exactly the value in pixels. If Label Width property is set to zero then label will be disabled and not drawn.

Value
Value property is used to set the initial value of the switch.

On Off Style
On Off Style property is a GUIStyle and can be used to fine tune the visual appearance of the background on/off image.

Thumb Style
Thumb Style property is a GUIStyle and can be used to fine tune the visual appearance of the thumb.

Label Style
Label Style property is a GUIStyle and can be used to fine tune the visual appearance of the field label.