- Home /
Drag and drop on object to bounce back to it place unity c#
Hi. I am having a problem on the drag and drop game for my project. I have 3 options of answers and only 1 correct answer that can drop to the empty space (target). If the wrong answer being drop to the empty space , it will bounce back to it place. for this, i cant find the code. can someone help me please, urgent :(
Answer by storybelldev · Mar 07, 2018 at 07:59 AM
save object position before its starting drag and after drop,if its wrong then move this object to the position saving while drag start.
Your answer
![](https://koobas.hobune.stream/wayback/20220612154022im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Clicking on one object to destroy a specific number of tagged objects dragged sidebyside 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to create a Drag & Drop system which verifies what gameObject was dragged into the slot? 0 Answers
How to add a score when the correct object drags to the correct box? 1 Answer