Hello
There was a topic started by me https://www.adventurecreator.org/forum/discussion/8980/clicking-on-gui-causes-player-move-to-that-point#latest
Your fix works for PC but doesn't work for mobile (touchscreen). Is there a way to fix it?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Let me know if this replacement for the PlayerInteraction.cs script's UnityUIBlocksClicks function does the trick:
You code brings up an error. Here is a little bit edited one:
Bit it doesn’t help anyway. We tried on emulator and tap still makes player move to that point
Though it's likely not going to make a difference, the EventSystem call should be consistent:
It should be something along those lines. I'll experiment some more.
Ah. That code is correct, but is only dealing with interactions. Movement is a separate function. Same name, in PlayerMovement. Set this to:
Code works. Thank you. We’ve tested it on emulator.