- Home /
Question by
AVAVT · Jul 27, 2015 at 11:01 AM ·
2dtouchscreen
[2D] Click/touch handler for both Mobile and PC
Currently I'm using OnMouseDown() to detect touch/click events on screen. But whenever I build for mobile this warning appear:
Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
So what's the recommended way to handle both mouse click & touch for my game?
Comment
Your answer

Follow this Question
Related Questions
2D rotating dial 1 Answer
Smooth curve drawing (runtime) 1 Answer
Split screen in half - Touch Controls 3 Answers
Move 2d game object instantly on position of Touch Input. 1 Answer