Hello guys. =)
I was trying to do some things with Drag & Drop today and stumbled in something weird.
Here's my setup :
Drag & drop itens : 50x50 px sprites, depth 15
Drag & drop container 1 : big sprite, depth 10
Drag & drop container 2 : 60x60px sprites, depth 10 ( An "inventory slot" )
The first time i drop an item in the container 2, it's ok, he receives the OnDrop event successfully, however, when i try and drop a second item on it, the object that receives the OnDrop is not the container, but the first item that was there, problably because of the depth and because they share the same collision area. This is bad because i'm doing my Swap logic on the OnDrop of the container, and if he doesn't receive the OnDrop event there's nothing I can do.
Also investigating NGUI code I saw that the OnDrop event isn't fired anywhere inside the UIDragAndDrop familiy of scripts, maybe the UIDragAndDropContainer should have a "OnItemDrop" callback/delegate?
Any ideas?