Open SkyeOfBreeze opened 5 years ago
In case anyone runs into this, I worked around it by subscribing to recenter events via the Android SDK using Java code.
I subscribed to the recenter event using com.google.vr.sdk.controller.ControllerManager onRecentered() callback and sent it to unity using a callback.
SPECIFIC ISSUE ENCOUNTERED
Detecting the recenting event does not work every time, or not at all on Unity 2018 for some devices. This is needed to recenter some of the UI elements in the project where the issue started occurring
HARDWARE/SOFTWARE VERSIONS
Google Pixel XL running Android 9,
Google Pixel running Android 10,
Samsung Galaxy S8 running 8.0.0,
seems to work without issues on Motorola Moto Z XT1650-03 running Android 8.0.0
google/marlin/marlin:9/PQ3A.190705.001/5565753:user/release-keys
,google/sailfish/sailfish:10/QP1A.190711.019/5790879:user/release-keys
,samsung/dreamqltesq/dreamqltesq:8.0.0/R16NW/G950USQU5CRK1:user/release-keys
,motorola/griffin/griffin:8.0.0/OPL27.76-71-2-3/3:user/release-keys
Pixel
Pixel XL
Galaxy S8
Motorola Moto Z
Pixel
Pixel XL
Galaxy S8
Moto Z
Daydream View (newer), but was not using headset
Demo project created with Unity 2018.4.4 or 2018.4.8
STEPS TO REPRODUCE THE ISSUE
WORKAROUNDS (IF ANY)
N/A
ADDITIONAL COMMENTS
GvrControllerInput.Recentered
is what was used in 2017.4.30. On all devices no logs are received for that one, but theGvrHeadset.OnRecenter += OnRecentered
method, logs show up on every controller recenter on the Moto Z.By default Unity 2018 projects use the 4.x scripting runtime instead of the old 3.5 runtime. This setting was not changed from default, and is still at 4.x. No settings were customized.
Setting scripting runtime back to 3.5 does not fix the issue