A slider is an element for controlling a value inside a certain range.
Sliders also have an attribute called precision
that defines
the number of decimal places the value can have.
// Construct a new Slider with values between 0 and 100
var mySlider = new Slider(0, 100);
// Accept two decimal places...
mySlider.precision = 2:
// ...or only accept whole numbers
mySlider.precision = 0;
// Set the current value to 32
mySlider.value = 32;
See also:
Constructor
new(minValue:FastFloat, maxValue:FastFloat, orientation:SliderOrientation = SliderOrientation.Right)
Creates a new Slider
with the given range.
Parameters:
minValue | The lower bound of the slider's range |
---|---|
maxValue | The upper bound of the slider's range |
orientation | Override the orientation |