Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Input.multiTouchEnabled always returns FALSE on iOS

Discussion in 'iOS and tvOS' started by inewland, Jun 23, 2014.

  1. inewland

    inewland

    Joined:
    Dec 6, 2012
    Posts:
    20
    Hello,

    I am having difficulty getting multi-touch working inside of Unity iOS. For some reason, I am never able to set multi-touch to TRUE, even after explicitly setting it at runtime. Multi-touch works via Unity Remote inside the editor but stops after deploying to the device (this makes me believe it's an iOS specific problem).

    I have tried:
    • Setting 'Input.multiTouchEnabled' to TRUE on Awake() and in an Update() method (always returns FALSE)
    • I've tested different ways of checking for multiple fingers; including:
      • Input.touchCount
      • Input.touches
      • Input.GetTouch
    • Inside iOS App Controller I've found - [self setMultipleTouchEnabled:YES];

    Regardless of these settings, I have found no way to get my touch count to be greater than 1.

    I am running Unity 4.3.4 Pro with iOS Pro on an iPad Air.

    It's also worth noting that I am using native UI's to drive my interface.

    Any help would be appreciated. Thanks.
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    You don't need to check or set this. On iOS it's always true (even if it returns False). If it returns False, then that's probably a bug, and no-one has ever thought to test it.
     
  3. inewland

    inewland

    Joined:
    Dec 6, 2012
    Posts:
    20
    Thanks for the reply Graham. Ok, so if that is the case, do you know why my Input.touchCount never exceeds more than 1?
     
  4. unimechanic

    unimechanic

    Joined:
    Jan 9, 2013
    Posts:
    155