- Home /
How to Make Smooth Scroll Feature using GUI ScrollTo
I understand that when using GUI.ScrollTo it will immediately move to a new designated Rect of a size and position you choose, but I want the rectangle to slowly move over incrementally instead of jumping right to the designated area.
I have tried using while loops and for loops for the incrementation, but it still jumps right to it even though the x position is incremented by amounts low as .001.
I am curious and open to any suggestions.
Answer by PAEvenson · Nov 27, 2012 at 08:57 PM
Youre doing frame based rather than time based. You need to use Time.deltaTime somewhere in your algorithm.
Your answer
![](https://koobas.hobune.stream/wayback/20220613084609im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to disable ScrollView dragging 4 Answers
Infinite Scroll Rect? 0 Answers
Unity5 new UI render problem on Android 1 Answer
Scroll Rect doesn't display items Unity 5.6 2 Answers
UI elements problem 0 Answers