Hello people!
I Have a problem with the update of UISlider in unity 4.6b17
I’m updating my slider every frame and everything is working well except whent it get to zero.
after hitting zero, it stop reacting to the values I set.
public void SetProgress(float progress)
{
float currentProgress = (float)System.Math.Round(progress,3);
Debug.Log(progress.ToString() + " " +currentProgress.ToString());
if (currentProgress != mPrevProgress)
{
Debug.Log("UPDATE");
mProgressBar.value = progress;
mPrevProgress = currentProgress;
}
}
Basicly, I press Q, it set progress to 1, and it decrease over time, it work well until it hit zero…
anyone have an idea of what is going on?
(Excuse my poor english
)