S
S
Sputnik Upitera2019-08-15 13:30:32
C++ / C#
Sputnik Upitera, 2019-08-15 13:30:32

How to get the coordinate of a single click on the screen?

How to get the coordinate of a single click on the screen ?
The screen is divided into 2 zones. It is necessary to check whether the click occurred on the right side or on the left.
When using Input.GetTouchCount , you can get the number of taps on the screen.
If the tap is one, is it possible to get its global coordinate ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2019-08-15
@deadsputnik

When using Input.GetTouchCount, you can get the number of taps on the screen

I understand you only had enough internet for a toaster. But you can look at the Inputclass methods without raising your priests right in the studio.
var screenPos = Input.GetTouch(0).position;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question