thx so much for the snippet of magic
public float myValue = Mathf.Lerp(0, 100, slider.sliderValue);
I'm not sure about "
slider.sliderValue); "
Is this supposed to be the name I gave to the script I created that changes the values ?
If so ... I called it SliderValueChange.cs
public class SliderValueChange : MonoBehaviour {
public UISlider progBar;
public Inventory sphereItem;
public float curValue;
void Update () {
OnSliderChange();
}
void OnSliderChange(){
progBar.sliderValue = curValue;
curValue = Inventory.score;
}
}
not sure where to fit the given code... ??