Skip to content

Slider

extends TransitionControl

Inherits from Control

The Slider class provides a convenient way to implement user interaction for adjusting numerical values, such as volume control or game difficulty.

成员变量

Slider.wholeNumbers : boolean
Slider.minValue : number
Minimum value of the slider.
Slider.direction : SliderDirection
The direction of the slider.
Slider.maxValue : number
The maximum value of the slider.
Slider.value : number
The current value of the slider.
Slider.sliderType : SliderType
The type of the slider.