Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Stummo's avatar
Stummo
Explorer
1 year ago
Solved

Eye Tracking Suddenly Broken

I have an app that uses eye tracking via the oculus movement sdk and open XR for everything else. As of last week Wednesday the eye tracking was working properly in my scene. Today it does not. I'm prompted for permission to use it each time the app starts, but the eye tracking is not working. Has something shipped recently that broke my project? Thanks for any ideas. 

  • Ok. For anyone who's eye tracking suddenly stops working - try this. Make a script that displays the status of eye tracking. I suspect it doesn't even matter what you have it do, just that you give it some other reason to call the eye tracking data. I added this and eye tracking is back and working.  

    if (OVRPlugin.eyeTrackingSupported && OVRPlugin.eyeTrackingEnabled)
    {
    if (OVRPlugin.StartEyeTracking())
    {
    eyeTrackingStarted = true;
    statusText.text = "Eye Tracking Started";
    }
    else
    {
    statusText.text = "Failed to Start Eye Tracking";
    }
    }
    else
    {
    statusText.text = "Eye Tracking Not Supported or Enabled";
    }
     

2 Replies

  • Following up on this. Uninstalled and reinstalled oculus packages, still no eye tracking. Missing deadlines, could use any guidance. 

  • Ok. For anyone who's eye tracking suddenly stops working - try this. Make a script that displays the status of eye tracking. I suspect it doesn't even matter what you have it do, just that you give it some other reason to call the eye tracking data. I added this and eye tracking is back and working.  

    if (OVRPlugin.eyeTrackingSupported && OVRPlugin.eyeTrackingEnabled)
    {
    if (OVRPlugin.StartEyeTracking())
    {
    eyeTrackingStarted = true;
    statusText.text = "Eye Tracking Started";
    }
    else
    {
    statusText.text = "Failed to Start Eye Tracking";
    }
    }
    else
    {
    statusText.text = "Eye Tracking Not Supported or Enabled";
    }