Author Topic: Multi Touch Problem  (Read 3094 times)

maurox772

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Multi Touch Problem
« on: May 06, 2016, 11:52:51 AM »
I'm trying to have five objects with the method "OnPress", I have turned on the UICamera allowing multi touch , but when I run my application on my phone , pressing more than two objects, the OnPress is canceled. As I can activate the Multi Touch?

I import the TouchScript in my project (
http://www.tasharen.com/forum/index.php?topic=4984.msg56678#msg56678
), then create the TouchScriptNGUI class, add the Camera gameobject child of my UI_Root , but still I can not get it to work properly, I still get the error when I press the third button , this cancels the other two buttons pressed.

Anyone, can help me?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multi Touch Problem
« Reply #1 on: May 07, 2016, 11:34:50 PM »
So two separate touches works fine, it's the third one that isn't working? I assume multi-touch is enabled, on the UICamera, so -- did you try it on other devices? I am pretty sure multi-touch works fine even without TouchScript on mobile devices, as it's just all Unity. TouchScript is needed for Windows 7 / 8 / 10 devices.

maurox772

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Multi Touch Problem
« Reply #2 on: May 09, 2016, 05:26:15 PM »
I've tried on multiple devices, iPhone 6 , HTC One M8 and Samsung Galaxy S6 and always is the same. And always fails in the third touch. Deputy camera settings. I use Unity Pro 5.3.4 f1 (Win 8.1 and Mac OS Capitan) and NGUI 3.9.8.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multi Touch Problem
« Reply #3 on: May 10, 2016, 06:10:00 PM »
Sounds like something in Unity. Just do your own check in an Update function: Check Input.touchCount, then in a for loop Input.GetTouch(i) for each one. See how many you get.