Search Unity

Question openxr menu button is not working

Discussion in 'XR Interaction Toolkit and Input' started by ShadowZie, Oct 13, 2021.

  1. ShadowZie

    ShadowZie

    Joined:
    Nov 5, 2017
    Posts:
    70
    Hey, I started to work with open XR and I am trying to get the menu button on the oculus controller but nothing works, I am using menuButton.action.ReadValue<bool>(); to get the value but its only false


    I tried to change the button to menu, menubutton , primary







     
  2. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    Few questions

    * Is the action enabled? (ie. did you call
    menuButton.action.Enable()
    anywhere?)
    * If you are using OpenXR did you add the oculus controller profile to the list of interaction profiles in the OpenXR settings?

    Best practice is to bind directly to the oculus controller rather than to XRController when using OpenXR, which would be
    <OculusTouchController>{LeftHand}/menu
     
  3. ShadowZie

    ShadowZie

    Joined:
    Nov 5, 2017
    Posts:
    70
    Thanks for helping me

    1. yes the action is enabled
    2. yes I added the oculus profile to openXR

    Its seems that steamVR will reserve the menu button and won't let me use it
    Is there something that I can do ? or to just change the button
     
  4. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    That may be the case that the SteamVR runtime will not let you access that button. The Oculus runtime for example does not give you access to the right controllers menu button either.
     
  5. freso

    freso

    Joined:
    Mar 19, 2013
    Posts:
    73
    Last edited: Oct 29, 2021
    luiginicastrocgs likes this.
  6. majorbatman

    majorbatman

    Joined:
    Feb 20, 2019
    Posts:
    5
    Pretty sure this is exactly what occured in my video.
     
    t-sonomura likes this.