Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

HelloVR Demo Scene "Event Trigger - Pointer Click" not working #985

Closed
johnpaullima opened this issue Dec 8, 2018 · 10 comments
Closed

HelloVR Demo Scene "Event Trigger - Pointer Click" not working #985

johnpaullima opened this issue Dec 8, 2018 · 10 comments

Comments

@johnpaullima
Copy link

johnpaullima commented Dec 8, 2018

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:

@johnpaullima johnpaullima changed the title HelloVR Demo Event Trigger - Pointer Click not working HelloVR Demo Scene "Event Trigger - Pointer Click" not working Dec 9, 2018
@T3rO
Copy link

T3rO commented Dec 10, 2018

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.

@johnpaullima
Copy link
Author

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

Thanks a lot! It worked!

@rusmaxham rusmaxham added the bug label Jan 2, 2019
@rusmaxham rusmaxham reopened this Jan 2, 2019
@rusmaxham
Copy link
Contributor

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

@FishfaceGames
Copy link

FishfaceGames commented Jan 5, 2019

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.

@AmigaAbattoir
Copy link

AmigaAbattoir commented Feb 13, 2019

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.

@maxdevclever
Copy link

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.

@whizzkid
Copy link

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

@KDragos
Copy link

KDragos commented Mar 21, 2019

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

@rusmaxham
Copy link
Contributor

This is now fixed in the latest release.

@TheAbzo
Copy link

TheAbzo commented Apr 7, 2019

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants