Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

How to detect Quest entering/exiting stand-by mode?

Discussion in 'VR' started by snw, Apr 6, 2020.

  1. snw


    Mar 13, 2014

    is there any way to detect when the Quest enters/exits stand-by mode?

    I tried using:
    - OnApplicationFocus
    - OnApplicationPause
    - OnEnable

    None of them triggered when Quest exited stand-by.

    I also tried detecting the headset by using the InputDevices.deviceConnected callback for an HeadMounted characteristic. This kind of worked - but the callback got triggered only ~1 second after the Quest had already exited stand-by.

    I want to fade in audio every time the user puts on the headset. Is there any way to do this reliably?