Author Topic: [Solved]Tweening movement/scrollTo for draggable panel/scroll bar?  (Read 1457 times)


  • Guest
[Solved]Tweening movement/scrollTo for draggable panel/scroll bar?
« on: September 05, 2013, 10:13:37 PM »
Hi, I'm trying to make an UI that scrolls to previous or next page when a respective button is pressed. However, if I try to adjust the scroll value directly it will only "jump" directly to the other pages without the scrolling process. I tried to use UICenterOnChild and set to a slightly lower value so that it will scroll automatically by centering the child but it seems like it will only activate when it was dragged only.

Is there a solution to this? I would prefer to have my UI remain using buttons instead of scroll bars.

Edit: I tried using TweenPosition on the panel and it produces the movement effect I wanted. But it seems like the clipping center would not be adjusted along with the panel position. Is there a way to solve this or are there any alternative methods to achieve same effect?

Edit2: I also tried using UIDraggablePanel.Scroll but it seems to be hard to control how much it scrolls and I seem to always unable to scroll to next page at all due to either the scroll value was set too low or a "bounce" effect is produced when the value was set too high...

Edit3: Using SpringPanel.Begin seems to do the trick, so I think the problem should be solved for now.
« Last Edit: September 06, 2013, 03:53:15 AM by alexei »