- Home /
Ios Tap Function
I have seen alot of posts on how to detect a tap on a object but not anywhere on the screen. How can I tap anywhere on the screen and execute code that makes a action happen? I tend to use c# but I can convert if I need to as I know bits of all languages.
Answer by poncho · Feb 11, 2014 at 05:20 AM
Use the Input.touches to access the touch config, the TouchPhase.Began and TouchPhase.Ended to detect a tap, and to make it execute code, after you detect a tap on the OnGUI or on Update methods, add the code you need to do after the tap, it is really easy to use these on C# good luck and happy coding.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Can certain IOS system gestures be disabled in my IOS app? 0 Answers
My IOS touch input is not working 0 Answers
Distribute terrain in zones 3 Answers
2d game for my first unity project. 1 Answer