Skip to main content
Inspiring
May 29, 2024
Solved

Eye Tracking Suddenly Broken

  • May 29, 2024
  • 2 replies
  • 1904 views

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. 

    Best answer by Stummo

    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

    StummoAuthor
    Inspiring
    May 31, 2024

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

    StummoAuthorAnswer
    Inspiring
    June 7, 2024

    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";
    }