Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

677
Vistas
Detect Oculus Quest 1 & 2 Headsets in Unity with XR Interaction Toolkit

I'm looking for a way to detect the name of the headset being used in my VR app. I need to distinguish between the Quest 1 & 2 in order to implement the different controller meshes/skins. I have searched here, this is similar Detect Oculus Quest 1 & 2 Headsets in Unity but uses the OVRPlugin which is not available with the XR Interaction Toolkit installed (is it?) Any help would be appreciated.

Edit: or perhaps this?: https://docs.unity3d.com/ScriptReference/SystemInfo.html

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I had a similar problem. I wanted to check if Quest 2 is tethered or standalone. I did something like this. I am sure you can run it on your Quest 1 device and adjust to do the needful on that device.

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;

public class CheckDeviceType : MonoBehaviour
{
    void Start()
    {
        Debug.Log("operatingSystem: " + SystemInfo.operatingSystem);
        Debug.Log("deviceModel: " + SystemInfo.deviceModel);
        Debug.Log("deviceName: " + SystemInfo.deviceName);
        Debug.Log("deviceType: " + SystemInfo.deviceType);
        Debug.Log("platform: " + Application.platform);

        var devices = new List<InputDevice>();
        InputDevices.GetDevices(devices) ;
        foreach (var device in devices)
        {
            Debug.Log("Device connected: " +device.name);
        }

        if (SystemInfo.deviceName == "Oculus Quest 2")
            DoNeededCode(); // Standalone Quest 2
    }
}

The output will be like this for Quest 2 standalone in Android Studio Logcat:

I/Unity: operatingSystem: Android OS 10 / API-29 (QQ3A.200805.001/19130100154900000)
I/Unity: deviceModel: Oculus Quest
I/Unity: deviceName: Oculus Quest 2
I/Unity: deviceType: Handheld
I/Unity: platform: Android
I/Unity: Device connected: Oculus Quest
I/Unity: Device connected: Oculus Touch Controller - Left
I/Unity: Device connected: Oculus Touch Controller - Right

And like this in Unity Editor on Windows:

enter image description here

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda