- Home /
Best way to check where touched
I'm making an Iphone game where you play against eachother on one screen. What is the most effecient way to check if the top half or the button half of the screen is touched/pressed? Both players should be able to touch at the same time.
Answer by Landern · Dec 05, 2012 at 02:00 PM
When you check the input touches, it may be more then one touch, you will want to iterate through them and check there position, which is just a Vector2(X,Y).
Input.touches documentation, has example of iterating through the touches collection
Thanks, haven't come around to testing it yet, but I do deem this sufficient information to research =D
Your answer
Follow this Question
Related Questions
GUI label dimensions bug 2 Answers
rect.Contains problem? 2 Answers
Input.GetAxis("Vertical") on touch devices. 2 Answers
Problem with Input.touchCount 0 Answers