Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
L4Z3RC47's avatar
L4Z3RC47
Protege
10 years ago
Solved

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...
  • delphinius81's avatar
    10 years ago
    You 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
    }


  • L4Z3RC47's avatar
    10 years ago
    Cool, thanks!