Author Topic: OnDragDropRelease: Return to original position?  (Read 1610 times)

Ace

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
OnDragDropRelease: Return to original position?
« on: August 04, 2014, 09:59:45 PM »
I can hard code a return position value for everything but Im curious if theres an NGUI way of putting a sprite back where it originated from if it doesnt get re-parented?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnDragDropRelease: Return to original position?
« Reply #1 on: August 05, 2014, 02:04:20 PM »
I don't remember exactly, but I don't think so. You need to record the position when the drag operation begins then restore it when it ends.