Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
SteveTack's avatar
SteveTack
Honored Guest
12 years ago

Tracking in my Unity game suddenly stopped working

I've been testing the Oculus Rift functionality of my Unity game on a regular basis, but today the head tracking just stopped working. The Tuscany demo still works, so there's no issues with the hardware or anything. Even so, just for grins, I've tried rebooting and using different USB ports, but no luck.

Any tips on how I can debug this?

4 Replies

Replies have been turned off for this discussion
  • Try re-importing Unity integration. Most likely you got your plugins corrupted or something.
  • Thanks for the suggestion! I tried that, but still no head tracking.

    UPDATE: I created a quick scene in the same project and the head tracking and everything DID work. So it seems to be a bug in code or something that I did in the actual game. The thing is, I wouldn't know how to stop head tracking if I tried, so I don't know what to look for.

    I do have a slightly unusual setup with three pairs of cameras on different layers, but they've always worked before. Hmm.
  • OK, I figured it out.

    I didn't realize until after some trial and error that the head tracking is specifically tied to the cameras on layer 0 and layer 1. I was messing around with my camera layers and had my farthest ones set to 2 and 3. So all I had to do was change those to 0 and 1 and head tracking was back.

    Whew, just glad to have it working again.

    UPDATE: Just a quick correction. Obviously only one camera is associated with tracking. That camera is whatever is the layer 0 camera.