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. Dismiss Notice

Question UnityXR and Vive Trackers

Discussion in 'XR Interaction Toolkit and Input' started by GoesTo11, Mar 24, 2021.

  1. GoesTo11

    GoesTo11

    Joined:
    Jul 22, 2014
    Posts:
    604
    Does anyone know how to setup the Vive Trackers with UnityXR? I tried adding an XRI Tracker action map and it has a binding for a vive tracker. I tried adding an XR Controller component and/or a tracked pose driver component to a tracker game component but it doesn't work. The tracker does not show up in the XR Interaction debugger. Thanks.
     
  2. GoesTo11

    GoesTo11

    Joined:
    Jul 22, 2014
    Posts:
    604
    If I run the following code I get 0

    Code (CSharp):
    1. var inputDevices = new List<InputDevice>();
    2. InputDevices.GetDevices(inputDevices)
    3. var DevicesCount = inputDevices.Count;
    4. Debug.Log(DevicesCount);