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. Dismiss Notice

Detect if Daydream VR Headset is On?

Discussion in 'AR/VR (XR) Discussion' started by CelsoDeMelo, Nov 17, 2016.

  1. CelsoDeMelo

    CelsoDeMelo

    Joined:
    Sep 2, 2015
    Posts:
    7
    Are there API functions (native or exposed to Unity) to detect if :
    1. If the device is in the headset?
    2. Headset is mounted on user's head?
    Thank you!
     
  2. nathanmartz

    nathanmartz

    Official Google Employee

    Joined:
    Sep 24, 2016
    Posts:
    22
    Hi, Celso. Good questions.

    1. When your app is launched we'll instruct users to put the phone into the viewer and won't hand control over to your app until that's done. We don't send you "device removed" events but users nearly always just press the X to close the app (which you do get).

    2. We do not have an API for this but are looking into idle detection for future updates.
     
  3. CelsoDeMelo

    CelsoDeMelo

    Joined:
    Sep 2, 2015
    Posts:
    7
    Thank you for the quick reply! Glad to hear the plan is to expose this in the future.
     
  4. CelsoDeMelo

    CelsoDeMelo

    Joined:
    Sep 2, 2015
    Posts:
    7
    Any updates on this issue? Is it possible to determine when the device has been inserted or removed from the HUD?
     
  5. pnaidu

    pnaidu

    Joined:
    Jan 5, 2018
    Posts:
    10
    Any updates?..

    Or work-arounds anyone has figured out since it isn't included in the api?
     
  6. Adam-DevClever

    Adam-DevClever

    Joined:
    May 22, 2019
    Posts:
    4
    its 2019, im dying of old age here google. Put a bool in already. Jesus
     
  7. Zapan15

    Zapan15

    Joined:
    Apr 11, 2011
    Posts:
    179