1
Support / Re: button doesn't work in unity3d 4.2
« on: July 25, 2013, 04:49:21 pm »
Hi guys,
We ran into the same issue, and we were able to track down the source of the problem.
The issue is that in Unity < 4.2, Input.multiTouchEnabled returned false in the Unity editor. Now it returns true.
The workaround is to use preprocessor conditionals.
So change:
#if !UNITY_FLASH
if (Input.multiTouchEnabled)
...
to
#if !UNITY_FLASH && !(UNITY_EDITOR || UNITY || UNITY_STANDALONE_OSX || UNITY_DASHBOARD_WIDGET || UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX)
...
Will email the fixed file to your support email.
Thanks again for a great product, guys!
We ran into the same issue, and we were able to track down the source of the problem.
The issue is that in Unity < 4.2, Input.multiTouchEnabled returned false in the Unity editor. Now it returns true.
The workaround is to use preprocessor conditionals.
So change:
#if !UNITY_FLASH
if (Input.multiTouchEnabled)
...
to
#if !UNITY_FLASH && !(UNITY_EDITOR || UNITY || UNITY_STANDALONE_OSX || UNITY_DASHBOARD_WIDGET || UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX)
...
Will email the fixed file to your support email.
Thanks again for a great product, guys!
