Search Unity

Question XR Interaction Toolkit (UI Press action) issue

Discussion in 'XR Interaction Toolkit and Input' started by Stout_pt, Sep 13, 2022.

  1. Stout_pt

    Stout_pt

    Joined:
    Sep 26, 2018
    Posts:
    2
    Background: I have some UI using "TrackedDeviceGraphicRaycaster", it contains a few scroll views and some buttons (items) on them to make choices . I am using Unity 2020.3.29f1 and XR Interaction Toolkit 2.0.1.

    What I need and seems impossible to implement as is: Two different interactions, one to scroll (Grip button) the other to Click (Trigger button). Right now only one action is allowed and does both (poorly in my experience...), because I am interacting with a laser, it is a bit shaky, sometimes it is difficult to just have the Onclick event because the scroll is on. The option to tweak the threshold seems to not have a good balance in any case.

    So, my question, since the UI api seems to be locked to edition, is if there is a way to have two actions taking care of one interaction each, or some other way/workaround that I may naturally be missing. Thanks for any help provided.
     
  2. HardikaDoshi

    HardikaDoshi

    Joined:
    Apr 29, 2022
    Posts:
    5
    hi, did you find a solution for this?