- Home /
Continuous number scroll picker UI using image and Lerp?
If I have a horizontally-oriented rectangular svg or png image similar to a ruler that lists evenly-spaced numbers from 0-100 in 0.1 increments, how could I mark the ruler precisely at main hash marks and have Unity accurately interpolate all 0.1 increments in between? I want the player to be able to swipe the ruler left or right to select any number between 0 and 100, such as 3.5, 24.6, 77.2, 31.3, etc.
Comment