• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Garth-Smith · Jun 15, 2013 at 01:35 AM · iosinputtouch

Input.touchCount won't return 2 or more on iOS.

Hello!

I have a project with a number of scenes in it. One scene will not detect more than 1 touch.

 void Update() {
     Debug.Log("touchCount: " + Input.touchCount);
 }

This function always returns 0 or 1, but only in one specific scene. I'm assuming something in the scene is affecting Unity's Input class.

Does anyone have any idea what could cause this? I've been looking around for a couple of hours but I still don't have any idea why I can't get more than one touch on an iOS device.

NGUI and FingerGestures are being used so maybe it has to do something with those? But only in this scene? So weird!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jerm-Red · Mar 08, 2017 at 06:13 AM 0
Share

@Garth-Smith did you ever find the bug? I'm dealing with a similar issue except it spreads from the affected scene so previous scenes that worked fine begin experiencing this issue.

avatar image Codein · Aug 26, 2017 at 08:12 PM 0
Share

Hi, did you find the cause of your problem, i'm facing the same issue. It seems related to the project itself

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Codein · Aug 27, 2017 at 06:22 AM

I don't think the same... If i start a brand new projet with that debug log,

 void Update() {
      Debug.Log("touchCount: " + Input.touchCount);
  }

It will work as expected, even on iOs. It seems to be something with the project and not an Unity bug.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Xarbrough · Aug 27, 2017 at 08:31 AM 0
Share

This does appear to work correctly. I removed my answer, since I was mixing up touchCount with PointerEventData.clickCount, which apparently isn't supported on mobile (or at least wasn't a while back).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem with Input.touchCount 0 Answers

Why can't I press both my touch controls at the same time? 1 Answer

How do you map touch to one of the input axes? 1 Answer

Short touch delay using either Input or EventSystem classes 1 Answer

Detect a tap versus standing touch on iPhone? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges