Determine XR device

Is there a way (XR plugin management 4.0.5, Unity 2020.3.9f1) to determine what the current device is?

Right now I’ve been winging it with Application.platform but that makes a lot of assumptions, and I’m about to add a few more Android devices to the mix that’ll break that logic.

It doesn’t necessarily need to be some predefined enum or anything, even just a device name string or anything else that can be used to identify the device model.

I found XRSettings.loadedDeviceName. It looks promising, maybe? It’s an empty string in the editor but I haven’t tested on a device yet.

I also found SystemInfo.deviceModel, I’ll try that as well.

I believe what you want you should get from here Unity - Scripting API: InputDevice

Thanks; I’ll play with the nodes there too. For now SystemInfo.deviceModel is meeting my requirements, with Application.platform and SystemInfo.deviceType as a general fallback in certain cases. I’ll publish a list of device model strings I’ve found somewhere eventually, once I get a collection worth sharing.

Do you have the list ?