Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gavin_Hayler

Pages: [1]
1
NGUI 3 Support / Re: buttons not working in unity 5 and android
« on: March 10, 2015, 06:00:29 AM »
Yup finally tracked it down to the same cause. Android manifest file was the issue. For what it's worth, I added this to the UnityPlayerActivity in the manifest and it worked again:
  1. <intent-filter>
  2.    <action android:name="android.intent.action.MAIN" />
  3.    <category android:name="android.intent.category.LAUNCHER" />
  4. </intent-filter>
  5. <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
  6.  

So the entire activity looks like this:
  1.     <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="landscape">
  2.       <intent-filter>
  3.         <action android:name="android.intent.action.MAIN" />
  4.         <category android:name="android.intent.category.LAUNCHER" />
  5.       </intent-filter>
  6.       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
  7.     </activity>
  8.  

2
NGUI 3 Support / Re: buttons not working in unity 5 and android
« on: March 10, 2015, 02:11:45 AM »
Looks like this is a problem with Unity and not NGUI. I'm still trying to track it down, but the real problem is that Input.touchCount always returns 0. Only seems to be a problem with upgraded projects as fresh projects seem to have no problem.

3
NGUI 3 Support / Re: buttons not working in unity 5 and android
« on: March 09, 2015, 06:06:22 AM »
Same problem. Just upgraded our project today to use Unity 5.0.0f4 and using NGUI 3.8.0. Buttons work fine in the editor, but on an android phone they don't respond at all. Any ideas what could be causing this or how to start debugging it?

Pages: [1]