Mobile OnMouseDown
I have a scene in my game with a bunch of colliders2D. The game is made for android. I want to be able to click on some colliders2D and exectute some functions there. So I started with onmousedown on the gameobjects that I was clicking. Then I had to add a rigidbody2d so this would work. recently though, the game crashes only when playing that scene once the apk is installed. The problem is that I cant get it to crash when on the editor or playing the game remotely . So I havent got a clue what the problem is . I think it may be the fact that there are a bunch of colliders2D with onmousedown functions attached to them... I got to that conclusion after some research on the forums. do you think this maybe causing the random crashes? I can try to attach raycast functions to this objects instead of onmousedown but it seems much more complicated code than onmousedown. Plus it will be such a pain having to go to every single function where I wrote onMouse down... Thank you for your help!
Your answer
Follow this Question
Related Questions
how to move by touching a point on mobile device like join clash game 0 Answers
my mobile button keeps pressing on its own instead of 1 tap 1 Answer
How to get the touch controls to work smooth and properly in FPS android gamemobile Game? 1 Answer
Addforce to Z axis rotation via touch input/ mobile 0 Answers