I have looked al over the internet, spend weeks already on this one issue.I read many storys that the code for this particular question will not work on mobile or Ios or is outdated.
I am preparing an bird perspective world where the player has to be able to “drag” over the level (no character at all) for movement “without” accidentally triggering objects during dragging! This is the issue, when start dragging by clicking on an gameobject means also triggering that object!
I succeeded in an OnMouse Down script in Which I have an working timer, so only after an certain amount of time an object gets triggered. But I did read that “OnMouseDown” is old code and not working on Ios or mobile. So I wasted all this time?
Why is this basic function so difficult to find clear answers?
The goal is an universal code that works on all platforms that will differentiate when touching the screen means dragging or else interact with an game object.
So: when You click the game object the object has to recognize You want to activate it’s connected trigger or start dragging only.
Thanks for some support, some links I investigated so far and played with: