Unity3D – Unity Event System Gaze Input

Posted by on Oct 29, 2016 in VR Prototypes, VR/AR | No Comments
Unity3D – Unity Event System Gaze Input

Unlike my last post where I used the GoogleVR Gaze Input, I wanted to solely use the Unity Event System Gaze Input for hover selection. On hover, I told the pink (left) box to move up and the blue (right) box to move backwards.

 

unityeventsystem-hover

 

 

 

 

 

 

 

 

 

 

 

 

Code Sample:

public class MoveUp : MonoBehaviour {

    public void MoveItemUp()
    {
        transform.position += new Vector3 (0f, 1f, 0f);
    }
}

 

Git Repo
Unity Scene: UnityGUIEventSystem

Leave a Reply