Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Oculus Quest 2 No Head Tracking in Editor but works in build

Discussion in 'VR' started by F1foux, Nov 21, 2023.

  1. F1foux

    F1foux

    Joined:
    Nov 1, 2018
    Posts:
    2
    Hi there,
    I'm working on a VR-Application for a client. I used the XR-Presets provided by Unity. I'm using a Quest 2 connected via USB to my computer. Dev mode is enabled and the project settings are set to Quest 2. (I also tried OpenXR to no avail)

    When I'm going into play mode the hand tracking works great and I see my scene through the headset but the head tracking doesn't work. In the XR-Debugger I can clearly see the HMD and it receives its rotation and location data. Once I export a build the head tracking works in the build and it does work in any other VR-Application I use on my computer. What am I missing?

    I'm using Unity 2022.3.12f1.

    Thank you for any help.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,847
    Which tracking mode do you use for the vr player?
    How is the player set up in general?
    Do you use Oculus XR or OpenXR plugin? (tried switching them?)
     
  3. F1foux

    F1foux

    Joined:
    Nov 1, 2018
    Posts:
    2
    The tracking mode is "Device" and the player is just the XR Rig prefab.
    As I mentioned I tried it with the Oculus Plugin and the OpenXR plugin with the same result, hands get tracked but Head doesn't.
    Here is what the setup looks like: upload_2023-11-21_13-19-21.png
     

    Attached Files:

  4. gareth_untether

    gareth_untether

    Joined:
    Jan 5, 2018
    Posts:
    68
    Did you find a resolution? I have the same issue.