Differentiating between Rift and Rift S (Solved)

Currently unity Standalone VR does not return the correct value for XRDevice.model.

Both the Rift S and the Rift CV1 return “Oculus Rift CV1”.
However, there is a way you can distinguish between the two.

The Oculus Rift S has a refresh rate of 80, while the old rift has a refresh rate of 90.
To determine if the headset that is connected is a Rift S or a regular Rift you can use the code below.

if(XRDevice.model.Equals("Oculus Rift CV1"))
{
    if(XRDevice.refreshRate <= 80)
    {
         // Oculus Rift S
    }
    else
    {
        // Oculus Rift CV1
    }
}
3 Likes

Very helpful. Thank you for sharing! :wink: