Author Topic: Draggable panel that snaps to item???  (Read 4102 times)

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Draggable panel that snaps to item???
« on: August 05, 2013, 09:35:30 AM »
Hey everyone.

I have made a panel with a grid and then 8 items inside that grid. The panel drags around perfectly but I want the panel to snap to each individual item much like the home screen on and ipad or iphone does. Is this something that can be done easily with NGUI and if so how?

Cheers and looking forward to your responses.

W

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable panel that snaps to item???
« Reply #1 on: August 05, 2013, 10:34:26 PM »
You mean how the "center on object" option works in the draggable panel example?

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Draggable panel that snaps to item???
« Reply #2 on: August 06, 2013, 04:56:14 AM »
I do. I will check this out now.


will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Draggable panel that snaps to item???
« Reply #3 on: August 06, 2013, 05:25:07 AM »
All working now. Thank you for the reply really appreciate it. Also great script, it works flawlessly. NGUI = best money spent