Gvr-unity-sdk: HelloVR Demo Scene "Event Trigger - Pointer Click" not working

Created on 8 Dec 2018  路  10Comments  路  Source: googlevr/gvr-unity-sdk

Summary: I'm a begginer in Unity and VR development.
3 Months ago I downloaded google VR package and it was ok (I don't remember the version). HelloVR Demo scene worked as it should. When entering object, it changed its color, when leaving it also changed and when I clicked on game preview, the subroutine TeleportRandomly worked, by moving the object to another place.
The problem is that I came back to this project yesterday and the new version of GoogleVR Package seems not working correctly. in HelloVR scene, Pointer Enter and Pointer Exit is still okay (in any "treasure"object), but Pointer Click is no longer functioning. I tried to change that (to Pointer UP or Pointer Down) but without success. Can someone help me?

Found using:

  • Google VR SDK version: 1.180.0
  • Unity version: 2018.2.
  • Phone manufacturer, model, and O/S version:
  • Viewer manufacturer & model:

Steps to reproduce the issue:

  1. I downloaded google VR Package 1.180.0, then configured Android Support and Cardboard.
  2. Then I opened HelloVR demo scene and runned.
  3. Pointer enter and Pointer Exit are working
    4. Pointer Click is not working
    image

Workarounds:

Additional comments:

bug fixed in upcoming release

Most helpful comment

Had the same issue.
Go to GvrBasePointer Script and remove the ! in front of UNITY_EDITOR in line 196.

Edit: Better completely remove this #if !UNITY_EDITOR statement. Otherwise, it won't work on a device.

All 10 comments

Had the same issue.
Go to GvrBasePointer Script and remove the ! in front of UNITY_EDITOR in line 196.

Edit: Better completely remove this #if !UNITY_EDITOR statement. Otherwise, it won't work on a device.

Had the same issue.
Go to GvrBasePointer Script and remove the ! in front of UNITY_EDITOR in line 196.

Thanks a lot! It worked!

Reopening until this issue is resolved in a GoogleVR SDK release.

Had the same issue.
Go to GvrBasePointer Script and remove the ! in front of UNITY_EDITOR in line 196.

Did that and it works when I click with my mouse. But tapping the phone or using the cardboard button still doesn't work. Using Unity Remote 5 to preview the game on my android.

Had the same issue.
Go to GvrBasePointer Script and remove the ! in front of UNITY_EDITOR in line 196.

Did that and it works when I click with my mouse. But tapping the phone or using the cardboard button still doesn't work. Using Unity Remote 5 to preview the game on my android.

@T3rO mentions in the "better yet" that you should comment out the whole #if !UNITY_EDITOR and the following #endif, this way it will work on the device.

If you leave the preprocessor as#if UNITY_EDITOR then it means that block of code only happens when running from the Unity editor.

This is still an issue (face Palm), to update anyone else struggling with this the new lines you need to comment out are 227 and 239.

When will this "upcoming release" actually be released? @rusmaxham

This is still an issue with version 1.190.1.
Thanks everyone for figuring out the fix.

This is now fixed in the latest release.

This is still an issue (face Palm), to update anyone else struggling with this the new lines you need to comment out are 227 and 239.

works perfectly :] Thanks!

Was this page helpful?
0 / 5 - 0 ratings