[Released] GazeClick for GoogleVR

GazeClick is a simple asset which ads a timed click functionality to the Reticle from the GoogleVR Plugin for Unity. This plugin only works with GoogleVR!

When the user looks at an interactive object, the timed cursor starts and as soon as the animation is finished, a click is simulated. In short: It implements an auto click functionality.

This enables completely gaze-controlled VR experiences without any additional input.
Ideal for cheap Cardboards without buttons.

It is designed for everyone to be used, without any programming knowledge:

As you can see above it is extremely easy to use:

  • Import GazeClick Unitypackage
  • Drag the AutoClick Prefab into the scene
  • Done

The package supports Unity 5.3.5 or newer including Unity 2017 and Unity 2018.
It also supports old Google VR SDKs down to version 0.9 Released in 2016.

You can customize the colors, the animation time, the direction of the rotation as well as some other small things.

The package includes a short and an enhanced instructions document.

[Asset store]

FAQ

Q: Can I change the color of the reticle or animation time?
A: Time and color settings are available on the GazeClick script on the GazeClick prefab and can be changed in the editor.

Q: Can I change the standard color of the reticle?
A: You can change it on the GvrReticleMaterial from the GoogleVR unity package.

Q: I’m getting an error : “The type or namespace name ‘…Gvr…’ was not found.”
A: GoogleVR Plugin is missing. Please import / reimport GoogleVRForUnity.

Q: How do I set up GoogleVR with the reticle?
A: Either duplicate the setup from the GoogleVR Demo scene or follow these Instructions from scratch:

Version 1.3 and older

  1. Import GoogleVR for Unity (Link: Quickstart for Google VR SDK for Unity with Android  |  Google for Developers)
  2. Create an EventSystem and add the GazeInputModule (GoogleVR / Scripts / GazeInputModule) to it.
  3. Be sure to have the GvrPointerManager script somewhere in your scene. It can be on an empty GameObject.
  4. Put the GvrViewerMain Prefab (GoogleVR / Prefabs) into the scene
  5. Drag the GvrReticle Prefab (GoogleVR / Prefabs / UI) onto the Main Camera

Version 1.4 and newer

  1. Import GoogleVR for Unity (Link: Quickstart for Google VR SDK for Unity with Android  |  Google for Developers)
  2. Drag the GvrEventSystem into the scene (GoogleVR / Prefabs / UI)
  3. Be sure to have the GvrControllerMain prefab in the scene (GoogleVR / Prefabs / Controller).
  4. Put the GvrEditorEmulator Prefab (GoogleVR / Prefabs / UI) into the scene to help you test the scene
  5. Drag the GvrReticlePointer Prefab (GoogleVR / Prefabs / UI) onto the Main Camera

Depending on your version of GoogleVR the names of some prefabs might vary.
Check the Demoscenes under (GoogleVR / Demos / Scenes) to find the correct names.

Q: Can I make certain objects interactable (click and or hover), but in a way such that GazeClick will not automatically click them?
A: Sure you can use the IGvrGazeResponder interface on such objects. Our GazeClick will not react to such objects.

Q: Is ther a way to hide the Reticle when not looking at an interactable object?
A: Yes there is! In the GvrReticlePointer object in the GvrReticleMaterial change the A value of the color to 0 and change the “Reticle Growth Speed” to a higher value.
After that go to the GazeClick object and uncheck the “Use Original Color”. If needed increase the “Time Before Rotation” and the “Rotation Duration” to get more time before a click.

Q: My GazeClick Reticle doesn’t behave properly, Animation doesn’t always play
A: Try changing / adjusting the “Precision” value in the Advanced Options to adjust the sensivity of the GazeClick Reticle

Q: I updated my GoogleVR version and GazeClick throws an error, what can I do?
A: Delete your Gazeclick folder and reimport (from the unity package) the newest Version of GazeClick.

Q: I just downloaded the newest version of GoogleVR and I get some errors using GazeClick.
A: If you are using a version of GoogleVR which is just some days old, it might be that GazeClick is not adapted to it yet.
Use an older version of GoogleVR for the time being and notify us via email, we might be allready working on an update.
You can find older Versions of GoogleVR here: GitHub - googlevr/gvr-unity-sdk: Google VR SDK for Unity

Q: I just downloaded the newest version of Unity and I get some errors using GazeClick.
A: It can sometimes happen, that newer versions of unity have some bugs or that some older functions are no longer supported.
Use an older version of Unity for the time being and notify us via email, we might be already working on an update.

Q: Why are you creating this thread now?
A: We think such threads are good way for people to exchange and maybe find answers to their bugs / questions. We happened to find help for several problems in similar threads the last few weeks, so we decided that we should also open a thread for our plugin.

Hi, I’m using unity 2019.2.21f1 and Google VR 1.200.1, this asset works with those specifications?