Ejemplo n.º 1
0
    void Start()
    {
        // Set the sensitivity once at startup.
        EyeParameter ep;

        ep.gaze_ray_parameter.sensitive_factor = sensitivity;
        SREye.SetEyeParameter(ep);
    }
Ejemplo n.º 2
0
 void Update()
 {
     // Retrieve new eye tracking data each frame and store it in the member variable.
     // It is recommended to place the eye tracker at the top of the update order.
     ViveSR.Error e = SREye.GetEyeData_v2(ref eyeData);
     if (e != 0)
     {
         string eName = Enum.GetName(typeof(ViveSR.Error), e);
         Debug.LogError("[EyeTracker] Error " + eName + " occurred while retrieving data.");
     }
 }