Topic: Unity UI prevents scrolling the camera
Hello,
Edit: Already found a solution!
Old Question:
In my project I've got some Unity UI elements like UI buttons. When starting a touch on such a button the map does not scroll. I know this is probably the required behaviour for many projects, but in my project I would actually like the camera to move regardless of whether the touch started on a button or on the map. Do you have any quick idea on how to make the map scroll but at the same time allow the button to work on click?
Solution:
I implemented the IPointerDownHandler interface on the UI elements where I want the map to scroll and in the IPointerDownHandler method I invoked:
OnlineMapsControlBase.instance.isMapDrag = true;
That did the trick!
Regards,
Jürgen