RangeSlider

Slider with two handles for minimum and maximum.

Set values

slider.ValueMin = 10;
slider.ValueMax = 80;

Set step

slider.Step = 2;

Set limits

slider.LimitMin = 0;
slider.LimitMax = 100;

Add listener

void Start()
{
   slider.OnValuesChange.AddListener(SliderChanged);
}

void SliderChanged(int min, int max)
{
   if (slider.WholeNumberOfSteps)
   {
      Debug.Log(string.Format("Range: {0:000} - {1:000}; Step: {2}", min, max, slider.Step));
   }
   else
   {
      Debug.Log(string.Format("Range: {0:000} - {1:000}", min, max));
   }
}