Author Topic: Unity 4.6.2 and OnClick() double invocation on iPhone6+ IOS  (Read 4262 times)

rur

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 5
    • View Profile
Unity 4.6.2 and OnClick() double invocation on iPhone6+ IOS
« on: February 02, 2015, 09:13:05 PM »
Hi,
We seem to be getting double clicks in OnClick() on an iPhone 6 +
We have just compiled our programs with Unity 4.6.2 and have the latest NGUI and also built a small test program with just a button that increments a number and it is incrementing it by 2 on each click.
If I hold my finger down and then drag over to the button and release it, then it works.

This only happens on an iphone6 +, compiled in x32 and x64 mode. (Have not tested it on other 64 bit devices.)
It does not happen on 32 bit devices.

Has anyone else seen this and is there a fix to it?

Need to release soon so need this get this fixed.
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4.6.2 and OnClick() double invocation on iPhone6+ IOS
« Reply #1 on: February 03, 2015, 10:41:24 AM »
Unity's 64 bit mobile support is brand new, it's bound to have issues associated with it. 64-bit windows / linux builds still have problems, and their 64 bit support was added years ago. I suggest reporting it as a bug to them, mentioning an inconsistency between 32 and 64 bit modes.

P.S. Make sure that UICamera's mouse events are turned off.

rur

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 5
    • View Profile
Re: Unity 4.6.2 and OnClick() double invocation on iPhone6+ IOS
« Reply #2 on: February 19, 2015, 02:29:43 PM »
This is just a follow up.

The problem has been resolved in the latest Unity Patch 4.6.2p2.

It turns out that it was a problem with the Display Zoom on the iPhone 6 (or IOS8) where you can set all your icons bigger (Setting->Display&Brightness->View)

For some reason that triggered 2 inputs in Unity when in Zoomed mode.