Forum Discussion
L4Z3RC47
9 years agoProtege
Detecting Oculus HMD is removed
While running and with an Oculus HDM attached does anyone know of a way to detect if the user/player has removed the headset? I'm trying to setup a script to trigger rendering on screen instructions t...
- 9 years agoYou can register delegates for the HMDMounted and HMDUnmounted events through OVRManager.
OVRManager.HMDMounted += HandleHMDMounted;
OVRManager.HMDUnmounted += HandleHMDUnmounted;
void HandleHMDMounted() {
// Do stuff
}
void HandleHMDUnmounted() {
// Do stuff
} - 9 years agoCool, thanks!
TedBrown
9 years agoHonored Guest
I have tested this in editor (along with VrFocusAcquired and VrFocusLost), and it works fine.
But it does not work in my build.
I'm running 5.4.0p2 with OVR 1.7 and Utilities 1.7
Is this a bug? Or is there a setting I'm missing?
But it does not work in my build.
I'm running 5.4.0p2 with OVR 1.7 and Utilities 1.7
Is this a bug? Or is there a setting I'm missing?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago
- 1 year ago
- 3 months ago
- 2 years ago