Forum Discussion
L4Z3RC47
10 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...
- 10 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
} - 10 years agoCool, thanks!
delphinius81
10 years agoRising Star
The last build I made where I know that this worked was Unity v5.4.0p1, Oculus Utilities v1.6.0, OVRPlugin v1.6.0. I haven't tried a build using 1.7 utilities/plugin.
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
- 8 months ago
- 3 years ago