- Home /
Swiping with Unity remote and device different?
I use this code to limit swiping area to right corner of the screen. It works nice with unity remote. But when i built a project, it did not work as i wanted. Now on mobile screen, swipe limitation is gone. Code doesn't work.
if (Input.GetTouch(0).phase == TouchPhase.Moved &&
Input.GetTouch(0).position.x > Screen.width/2 &&
Input.GetTouch(0).position.y > Screen.height/ 2)
Comment
Your answer

Follow this Question
Related Questions
Swipe Detection Best Practices 1 Answer
Resizable GUI box how to? 1 Answer
Don't show window close button 1 Answer
Collide edge of object with the edge of the screen 0 Answers