Scale
Scale for the sliders: default Slider, RangeSlider (Disable Handle Overlay
is not supported), CenteredSlider.
To use add the appropriate SliderScale / RangeSliderScale / CenteredSliderScale component to the Slider, then create and specify Scale gameobject.
Options
Container
RectTransform
Marks container.
Main Line
Image
Main line.
Show Current Value
bool
Show marks for the current values.
Current Mark Template
ScaleMarkTemplate
Template for the current mark.
Show Min Value
bool
Show mark for the min value.
Min Mark
ScaleMarkTemplate
Minimum mark.
Show Max Value
bool
Maximum mark.
Scale Marks
List<ScaleMark>
Marks templates.
MarkValuesGenerator
Action<float min, float max, float step, List<float> output>
Fill output list with values where marks should be displayed.
ScaleMark
Step
float
Value difference between marks.
Template
ScaleMarkTemplate
Mark template.
SliderScale and RangeSliderScale Components
Scale
Scale
Scale gameobject.
Format
string
Formatter
Func<float, string>
Custom formatter to use instead of format string.
CenteredSliderScale Component
Scale
Scale
Scale gameobject.
Format
string
Formatter
Func<float, string>
Custom formatter to use instead of format string.
Negative Step Rate
float
Multiplicator for marks at negative side of the scale.
Positive Step Rate
float
Multiplicator for marks at positive side of the scale.