Reproduction:
- unity remote running on device
- device connected over USB with ADB
- play in Unity
- click mouse on widget in Unity game view: OnClick fires
- touch finger on widget on tablet showing game via Unity Remote: OnClick does not fire
Workaround:
- I can actually get NGUI to work normally by playing the game, then going into the UICamera in the hierarchy view and frobbing one of the UICamera checkboxes (Debug/Allow Multi Touch/Sticky Press).
Toggling a checkbox only fixes the problem if you do it at play time (e.g. toggling debug during playtime makes it work, but if you set debug on before pressing play, it won't work until you toggle the checkbox).
Dev Environment:
NGUI 3.0.5
Unity 4.2.2f1
Windows 7 64bit
Test platform:
Nexus 7
Android 4.3
Unity Remote 1.2
Notes:
- problem began after installing NGUI 3.0.5 - can fix by regressing my project to previous version (which was using NGUI 3.0.2)
- OnClick fires fine when running on device properly (i.e. no Unity Remote)
- the touch input from unity remote appears to be coming across the wire: you can see when you hold the touch, NGUI does the "hold" animation, it just doesn't fire the click notification when you release the touch