Answer the question
In order to leave comments, you need to log in
How to get two pressed unity 3d objects?
2d. There are several objects (let there be Rects). When you click (finger / mouse) on 2 objects - they change places.
Trouble is to find these two clicked objects. Through IPointerDownHandler and OnPointerDown on the go is not suitable, because this script is hung on the object itself. As I understand it, you need to hang a touch handler on the mb camera. To find the object of the first touch, then the second and swap them
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question