Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to check if menu is open to hide hands/controllers?

Discussion in 'VR' started by emrys90, Feb 9, 2021.

  1. emrys90

    emrys90

    Joined:
    Oct 14, 2013
    Posts:
    755
    So the Oculus store requires you to hide hands while their menu is open. How can do you do this using Unity without a third party plugin? OnApplicationFocus does not seem to be getting called
     
  2. Tanya_Li

    Tanya_Li

    Unity Technologies

    Joined:
    Jun 29, 2020
    Posts:
    104
    Hey,

    We just added InputFocusAcquired and InputFocusLost events in our latest Oculus XR plugin 1.10.0-preview.1 release.


    [1.10.0-preview.1] - 2021-05-19

    Added
    • Added
      event Action InputFocusAcquired 
      and
      event Action InputFocusLost 
      in
      class InputFocus
      to detect Oculus input focus when the Universal menu is open or closed
     
  3. emrys90

    emrys90

    Joined:
    Oct 14, 2013
    Posts:
    755
    Thanks! I have since moved to OpenXR though. Are there any plans for something in there to support this requirement of Oculus?