I am using Unity's slider to set a floating point number between the ranges of 1.0 - 10.0. The problem is, it rounds off. I do not want the slider to round off the value, instead it should display as it is. Can you please help me fix this?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
private Slider sliderUI;
void Start () {
sliderUI = GetComponent<Slider> ();
sliderUI.value = 3.56f;
}
The slider value changes to 3.6. How do I make it 3.56?


