Unity3D – GoogleVR Gaze Input

Posted by on Oct 27, 2016 in Blog, VR Prototypes, VR/AR | No Comments
Unity3D – GoogleVR Gaze Input

This is a simple demo I did using the new IGvrGazeResponder in the new Google VR SDK for Unity. Basically, on hover (or OnGazeEnter below), I am telling a box to move backwards in z space.   Code Sample: public class BoxGVRGaze : MonoBehaviour, IGvrGazeResponder {     public void OnGazeEnter() {         transform.position += new Vector3 (0f, 0f, 1f);     }     public void OnGazeExit() {         Debug.Log (“Gaze Exit“);     }     public void OnGazeTrigger() {         Debug.Log (“Gaze Trigger“);     } }   Git […]

Load More