using UnityEngine;
using UnityEngine.UI;
public class SliderExample : MonoBehaviour
{
public Slider slider;
public Text displaySliderValue;
private float sliderValue;
private void Update()
{
displaySliderValue.text = sliderValue.ToString();
sliderValue = slider.value;
}
}