Hey all, I'm running into a bit of an issue that I'm sure it is just my usage. I've got a very simple script attached to an UIImageButton template as follows:
using UnityEngine;
using System.Collections;
public class EventTest : MonoBehaviour {
void OnPress (bool isDown) {
print(UICamera.currentTouchID + ":" + isDown);
}
}
When I'm running this in the editor preview, I get out put as expected:
-1:True //Left Down
-1:False //Left Up
-2:True //Right Down
-2:False //Right Up
-1:True //Left Down
-2:True //Right Down
-1:False //Left Up
-2:False //Right Up
And so on. The problem I am running into is when I have this running on my Android device I get something that is kinda unexpected or at least to me:
0:True //First Finger Down
0:False //First Finger Up
0:True //Second Finger Down
0:False //Second Finger Up
0:True //First Finger Down
0:True //Second Finger Down
0:False //First Finger Up
0:False //Second Finger Up
I would have expected something along these lines:
1:True //First Finger Down
1:False //First Finger Up
1:True //Second Finger Down
1:False //Second Finger Up
1:True //First Finger Down
2:True //Second Finger Down
1:False //First Finger Up
2:False //Second Finger Up
About my device / scene:
1. Google Nexus 7
2. Android version 4.2.1
3. 1 Scene, terrain, high models, really just a stress test scene, runs like crap 15fps.
Thoughts?