Download

How to Detect if using Rift or Vive?

So I’m a bit stumped on how to do this. I took a look at all of the Oculus and SteamVR Blueprint nodes and this is what I came up with:RiftViveDetection.PNG

(Feels hacky brah)

Oculus detection is functioning, but Vive does not. I realize there are only a handful of people out there with Vives right now… but has anyone else tried figuring this out?

In cpp you could do



	if (GEngine->HMDDevice.IsValid() && GEngine->HMDDevice->IsHMDEnabled())
	{
		if (GEngine->HMDDevice->GetHMDDeviceType() == EHMDDeviceType::DT_SteamVR)
		{
			// BLAH!


GetHMDDeviceType doesn’t seem to be exposed in the HeadMountedDisplayFunctionLibrary, so you can’t access it from blueprint. You’ll have to expose it yourself or use cpp…

I requested that to be blueprintable, and it got submitted to the requests. I’d suggest everyone post in that feedback thread offering support for it!