Get VR Focus State for Vive

Hi there :smiley:
i used “Get VR Focus State” to detect if the player is using the VR-Device or if its still sitting on the desk to play the intro-sequence at the right time… on the rift that works perfectly but on the vive i cant get it to work, is there another trick to archive this for vive? would be great to have one solution for both :confused:

Vote this question.
I also want to know how to disable Oculus’ auto not focus the VR when i take off the headset.I found it may cause network bandwidth broken, it became very low when OC as a server(P2P).

You could use a VRNotifications component on a blueprint. These have events you can link to (Headset On/Off) and then do certain things when the headset is put on. So when headset is on with the event, check if you have not already played the sequence and then play it.

We have a more involved solution however in C++, that uses the core delegates for HMD.

FCoreDelegates::VRHeadsetPutOnHead.AddUObject(this, &SomeClass::HMDPutOnHead);

FCoreDelegates::VRHeadsetRemovedFromHead.AddUObject(this, &SomeClass::HMDRemovedFromHead);

When these delegates fire the code functions, you can do what you need to in there or create blueprint events to do it in blueprints as well.