Search Unity

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

[UnityEngine.XR] OpenVR, maximum 9 input devices?

Discussion in 'AR/VR (XR) Discussion' started by sharimken, Aug 3, 2019.

  1. sharimken


    Jul 30, 2015
    I am using XR library with openVR in Unity 2019.1.10f1.
    I have a tracking system with 4 lighthouse sensor + 6 vive tracker(2018), without headset.
    In SteamVR Panel, I can see 11 devices icons.
    null headset("H") + 4 lighthouse sensor + 6 vive tracker(2018)

    I can only get 9 input devices as maximum, is this a limit? Those 9 input devices follows the order of "serial number of hardware". It means, I can always detect first 9 devices by their name order.

    In my case, I can only detect 3 lighthouse sensors and 5 vive trackers and a generic headset(null). however, I want to get 6 trackers only. If 9 devices are the limit, can I ignore unnecessary devices like lighthouse sensors?

    my first thought is trying to reorder the devices in steamvr, but I didn't find the related option.

    Below is the code:

    Code (CSharp):
    1. var inputDevices = new List<InputDevice>();
    2.         InputDevices.GetDevices(inputDevices);
    3.         DevicesCount = inputDevices.Count;
    Hope someone can give me some hints, thank you.
  2. jasbahr


    Jan 22, 2014
    Also running into this.
  3. thelghome


    Jul 23, 2016
    Our original problem is solved, by using openvr from github instead of unity XR. It's the only way to unlock the limit.
    and this is what we achieved finally in 2019.