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 How can I set the XR Grab Interactable to use grip (select) button instead of trigger (activate?)

Discussion in 'XR Interaction Toolkit and Input' started by EnergeticEnergy, Oct 16, 2022.

  1. EnergeticEnergy

    EnergeticEnergy

    Joined:
    Sep 26, 2020
    Posts:
    3
    Not sure why Unity is doing this and I may just be dumb but I cannot find a way to swap to the correct button, it is using the trigger to pick up the grab interactable instead of the grip.
     
  2. EnergeticEnergy

    EnergeticEnergy

    Joined:
    Sep 26, 2020
    Posts:
    3
    Never mind im dumb
     
  3. samvid

    samvid

    Joined:
    Feb 25, 2016
    Posts:
    6
    Well I would like to know the same. Can you tell me how did you do that?
     
  4. VRDave_Unity

    VRDave_Unity

    Unity Technologies

    Joined:
    Nov 19, 2021
    Posts:
    257
    Hey @samvid,
    Depending on which XR Controller you are using, but if you are using the
    XR Controller (Action-based)
    , you will want to modify the Select Action binding (either using the referenced .inputactions file or the direct binding if you are not using an asset reference).
    upload_2022-10-18_11-1-48.png
    If you are using the
    XR Controller (Device-based)
    , you can change the Select Usage dropdown.
    upload_2022-10-18_11-1-17.png
     
    PietroPingitore and daravico like this.
  5. rmichels

    rmichels

    Joined:
    May 26, 2021
    Posts:
    2
    Is there any way I can do this for a specific interactable only using the action based XR controllers? I'd like to have my backplate be grabbable with the grip button, but if I bind the Select action to gripPressed, all Interactables will respond to the grip button.
     
    yaelm631 and jaschott like this.
  6. mew_fi

    mew_fi

    Joined:
    Oct 1, 2014
    Posts:
    17
    That's what I'm trying to figure out as well.

    Teleporting and grabbing both use the select action to operate and there doesn't seem to be a way to change what action they use to activate.

    If I want to be able to grab and teleport with the same hand using the ready made scripts, it is pretty messed up.