Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

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:
    41
    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.
     
unityunity