Drag and drop object in correct position

Hi

I need some help for some drag and drop code for iOS (iPad)
I want the user to be able to drag a game object across the screen space and when placed in the right place, triggers an event such as ‘well done’ GUI text and moves to next scene. !!

However if the user drags in the wrong game object (as there will be a selection) it will feedback with ‘incorrect’ and go back to its original position.

Anyone have any ideas, tutorials, videos or anything like this I would really appreciate your feedback or even if they don’t think it is possible to implement ( although I can imagine it to be possible)

Thanks a lot!!

New unity user.

Are the objects already in the scene? If that’s the case you need to cast a Ray ( Unity - Scripting API: Physics.Raycast ) from the touch position. If the Ray hits a moveable object you keep casting Rays but check if they hit the ground (ignore the layer of the editable objects). If the Ray hits the ground, position the moveable Object to that location. I think that will give the illusion of “dragging”.
Or look