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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Possibility to detect if Quest is active

Discussion in 'VR' started by saifshk17, Jul 11, 2023.

  1. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    487
    Is there a function in XR that can be triggered to check if the headset is worn by the user or is lying idle?
    Would like to know if such a function exists in Quest devices.

    Earlier for Oculus, it was done this way:
    Code (CSharp):
    1. if (!OVRPlugin.userPresent && m_wasUserPresent){
    2.  
    3. }
     
  2. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    16