Search Unity

  1. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  2. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice
  3. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted OpenXR/New input System, detect HMD removed?

Discussion in 'XR Interaction Toolkit and Input' started by eblavender, Apr 20, 2021.

  1. eblavender


    Sep 4, 2017
    Hi Peeps!

    We are currently going through the review process with Oculus and we are required to detect when a HMD is removed, in order to pause our game. We are using the latest Unity 2020.3, and OpenXR 1.1.1, and I cannot find an option in the Input Actions window to detect this? I can't seem to find anything in the forums either. Any help on this would be appreciated.

    Kind Regards,
  2. Muskie


    Jan 21, 2017
    I'm currently looking at this myself. you'll want to make a new input action for <XRHMD>/userPresence, however this seems to be a touch buggy, as it occasionally doesn't register the event. you'll also want your menu buttons to trigger the pause as well.