Optionalenabledwhether it answers input; a disabled slider is drawn at half opacity
Optionalfillthe part of the track from the low end to the thumb (drawn look)
Optionalfonta CSS font family, or the name of a loaded bitmap font
Optionalfontthe text height of the caption and the value, in pixels
OptionalhoverThe scale the widget is drawn at under the pointer, or while it has
the keyboard and gamepad focus, such as 1.05. 1 turns it off.
Optionallabela caption drawn above the track: at the left on a horizontal slider, centred on a vertical one
Optionallabelthe colour of the caption and the value
Optionallengththe length of the track, in pixels: its width on a horizontal slider, its height on a vertical one
Optionalmaxthe highest value
Optionalminthe lowest value; min and max are swapped if given the wrong way
round
OptionalonCalled with the new value on every change the user makes, while
dragging too. Never called when value is set from code. See
UISlider#onChange.
OptionalonCalled with the final value once the user lets go, and after each
wheel or key step. Never called when value is set from code. See
UISlider#onChangeEnd.
Optionalorientationwhich way it slides; a vertical slider has its highest value at the top. Fixed once built.
OptionalpressThe scale the widget is drawn at while held down, such as 0.92.
1 turns it off.
Optionalshowshow the value as text: at the right end of the caption row on a horizontal slider, below the track on a vertical one
Optionalskindraw it from atlas regions instead of the drawn look
Optionalstepthe interval values snap to, counted from min; 0 for no snapping
Optionalthumbthe thumb's outline (drawn look)
Optionalthumbthe thickness of the thumb's outline, in pixels (drawn look); 0 for
none
Optionalthumbthe thumb (drawn look)
Optionalthumbthe thumb under the pointer or while dragged (drawn look)
Optionalthumbthe diameter of the round thumb, in pixels (drawn look; a skin's thumb keeps its region's size)
Optionaltrackthe track (drawn look)
Optionaltrackthe thickness of the track, in pixels; with a skin, the track region's thickness by default
Optionalvaluethe starting value, snapped to step and clamped to the range; min
by default
OptionalvalueHow the value text is written, given the value and the ratio (where
the value is between min and max, 0 to 1). By default, the value
with as many decimals as step has, or 2 decimals with no step.
The settings UISlider takes. All are optional.
The colour settings are for the drawn look and are ignored when a
skinis given.