Author Topic: Is there a feature to snap to closest item in a Scroll View?  (Read 1892 times)

alexh0101

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 30
    • View Profile
I saw a few threads that date from 2 years ago where snapping was discussed.
I want my draggable items to snap when I scroll/drag left and right.

Is there any snapping feature in recent versions of NGUI?

Can you please direct me to the most relevant thread/link about that?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is there a feature to snap to closest item in a Scroll View?
« Reply #1 on: July 23, 2014, 09:28:34 PM »
If you mean centering on an object in the scroll view, UICenterOnChild does it, and is a part of the Scroll View example in addition to being covered in video tutorials. Snapping of widgets as you drag them in the editor is a different feature.