Search Unity

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

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

  1. snw

    snw

    Joined:
    Mar 13, 2014
    Posts:
    42
    Hi,

    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.

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


    Cheers.