Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question How can I use HTC Vive Tracker in OpenXr without setting the wearing position in SteamVR?

Discussion in 'VR' started by feathered_wing, May 23, 2023.

  1. feathered_wing


    Dec 5, 2020
    I'm working on a project migration from SteamVR/OpenVR to OpenXR. But I encountered some problems when compatible with tracker:

    In past projects, I used InputDevices.GetDevices to directly obtain the number of trackers and parameters. Then use the "SteamVR_trackerObject" script on a gameobject to synchronize its position. without knowing where it represents on steamVR.

    But when I migrated to OpenXR, the old code and logic became invalid, so I had to use the HTCViveTrackerProfile under this answer ( cs to get the current tracker.

    But because of this, I have to bind the position of the tracker in steamVR in advance, and I don't want the user to do this binding one more step. Is there any way to get the position and rotation of the tracker that is not bound in SteamVR? Or pose?

    Attached Files: