Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lando100 on September 30, 2013, 07:19:50 AM

Title: scroll draggable panel to position
Post by: Lando100 on September 30, 2013, 07:19:50 AM
was wondering if anyone could help, I have the following hierarchy:

-UiPanel
      -UIPanel with UIDraggablePanel
           - UIpanel with UIGrid and UICenterOnChild
               - all the grid children that have a collider and UIDragPanelContents


works great, now i want to tap one  of the children and for that to scroll to the center, was wondering if there was a clean solution for this? currently i am having to take note of the position on the draggable panel when each child is in the center and then when a child is pressed in snaps to the relevant position. Not very eligant and a bit buggy at times, any help would be much appreciated.

Thanks
Lando
Title: Re: scroll draggable panel to position
Post by: Lando100 on September 30, 2013, 09:39:55 AM
solved it, SpringPanel was exactly what i was looking for  ;D