Search Unity

Device model for Windows MR

Discussion in 'VR' started by MythicalCity, Dec 8, 2017.

  1. MythicalCity

    MythicalCity

    Joined:
    Feb 10, 2011
    Posts:
    420
    How do we know what the model names are of the windows mr devices? for XRDevice.model? we have the acer headset so it says "Acer Mixed Reality" but we want to make windows MR specific changes to our code when the game is run through SteamVR with a Windows headset. Will they all have "mixed reality" in the name, or are they all different?
     
  2. jkoldev

    jkoldev

    Joined:
    May 28, 2015
    Posts:
    5
    I am in a similar situation. How are the XRDevice.model names populated by Unity? Is there documentation available about the names used by the different WMR headsets? So far the only names I have found are from here . Or is there a better way to detect WMR headsets?
     
  3. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    220
    To get at something platform-specific instead of model-specific, you want XRSettings.loadedDeviceName - for Windows Mixed Reality, this will report as "WindowsMR".
     
    ROBYER1 likes this.
  4. jkoldev

    jkoldev

    Joined:
    May 28, 2015
    Posts:
    5
    But XRSettings.loadedDeviceName is the loaded SDK and not really the device name. And so, when using OpenVR, which supports Oculus, Vive, WMR headsets, we have to rely on XRDevice.model to configure the game correctly.
     
  5. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    104
    @unity_andrewc we also have this problem where we are using OpenVR to support WMR headsets but each headset then returns a different name with XRDevice.model. OpenVR is to broad to target. Better to break it down Oculus, Vive, WMR headsets.
     
  6. MythicalCity

    MythicalCity

    Joined:
    Feb 10, 2011
    Posts:
    420
    This does not report WindowsMR it reports OpenVR which is too generic, how can we find out it's windowsMR vs Vive vs Oculus without relying on model name which we can't possibly predict for future headsets.