1
NGUI 3 Support / Re: Drag Drop Swap - Request for a little coding
« on: December 31, 2017, 03:14:19 AM »
Whilst I have been unable to produce my desired 'swap' outcome, I've come up with a workable alternative.
Using an OnHover event contained within each droppable gameobject, the target location now rejects all droppable objects except for the one currently inside it.
This means that there is no swap. Instead, the user will need to return the object in the target slot to its original place before dragging and dropping the alternative.
I am still interested in a coded version, if any coder happens to be interested.
Happy new year!
Using an OnHover event contained within each droppable gameobject, the target location now rejects all droppable objects except for the one currently inside it.
This means that there is no swap. Instead, the user will need to return the object in the target slot to its original place before dragging and dropping the alternative.
I am still interested in a coded version, if any coder happens to be interested.
Happy new year!

I've read pretty much every thread containing OnDragDropRelease, but with no luck.