- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
Srimasis · Apr 28, 2014 at 04:13 PM ·
androidiphonetouchtouchscreentouch.deltaposition
What is the command to check whether player is touching the screen or not??
Should I write
if (Touch.position!=Vector2(0,0)){
userIsTouching=1;
}
Or should I write
if (Touch.fingerId==1){
userIsTouching=1;
}
Thanks.. Any help is appreciated...
Comment
Answer by Rob-Fireproof · Apr 28, 2014 at 05:05 PM
I think that Input.touchCount is probably what you're after.
i.e.
if (Input.touchCount > 1)
{
userIsTouching=1;
}
Your answer
Follow this Question
Related Questions
How can I tell if the device I am on supports touch? 4 Answers
Touch Input madness 2 Answers
Not getting a response when a touch doesn't move with TKtouchkit 1 Answer
Touch Hold for Power 1 Answer
Making a Touch TrailRenderer 1 Answer