Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: 3d03 on January 22, 2014, 05:03:24 PM
-
I'm trying to get current step index, but it's difficult because of float-to-int, float-div-float math.round-float issues.
Please help.
sorry for my english.
-
Yes! I did it!)
index = (int) Mathf.Lerp (1, slider.numberOfSteps,slider.value);
-
Super Useful - thanks!