Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Change UI click binding but not in XRI Default Input Actions

Discussion in 'VR' started by TheEmeraldWeegee, May 25, 2023.

  1. TheEmeraldWeegee

    TheEmeraldWeegee

    Joined:
    May 10, 2022
    Posts:
    2
    I am trying to make it so that the UI in my game can only be pressed using the trigger button, but for some reason, it also allows for the right primary button to click on it as well, but only when I'm not pointing at it. It also seems to be in a random spot every time I click the right primary button. I have tried to fix it using the XRI Default Input Actions, but it still happens. I don't want the right primary button to be what interacts with the UI, because that is what will make my player jump. The only thing I can think of that would be the issue would the XRI Default Input Actions, but I have already tried to remove the RightHand primaryButton from the actions, and it still does it. I'm kinda new to this, and I don't see another way on fixing this issue. How else would I fix this? If it makes a difference, I am using Unity 2021.3.16f1 Personal, and I am trying to build to Android, as I am testing on my Quest 2. I have also tested using Link cable onto my computer and switching the platform to PC, but nothing has worked so far.
    upload_2023-5-25_3-37-36.png
     
    Last edited: May 25, 2023
  2. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    23
    Do you have the Legacy Input System enabled along with the new Input System? It may be the case that the old Input System has a UI binding for "Submit" or some other equivalent mapped to the XR controller's primary button by default, causing it to be fired.

    upload_2023-6-1_15-22-14.png