Skip to main content
New Participant
October 3, 2025
Question

How to determine headset type in 2D app?

I'm building a general purpose 2D app using DotNet Maui. I want it to access the passthrough camera if available. Originally I was hoping that there was a platform feature I could query that would tell me if there was a camera available before pushing the permission dialog, but I couldn't find any way to do this.

My fallback is to detect the headset type and to enable this feature if it's running on a Q3 or Q3S. I'm looking at DeviceInfo, but the only field that seems to indicate the device type is "Name." This is technically changeable by the user so I'd really rather not use it. "Model" returns "Quest" for seemingly all devices, so it's not an option.

Question: what's the easiest way to definitively determine whether the headset has passthrough camera support from a Maui/Xamarin app? Can I load the OpenXR runtime and call into that somehow? I've tried to link it using [DllImport], but it says it can't find the library. I tried to load the library directly but get an error "library is not accessible for the namespace".

2 replies

GoodGameGomez
Community Manager
October 11, 2025

rocketchicken​ To target a device, you can use the OVR manager, calling OVRManager.systemHeadsetType() to determine the headset type. 

We aren't able to provide direct guidance on using .Net Maui for development as this is outside of the scope of our development environment, but targeting an app can be done using the above documentation (with OVR manager).

March calendar of all Mentor Workshops and Office Hours
New Participant
October 11, 2025

OVRManager is part of the Unity SDK. What native call is this making?