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

XR Interation toolkit: Get which hand clicked UI

Discussion in 'VR' started by CharlieBudd, Mar 24, 2020.

  1. CharlieBudd

    CharlieBudd

    Joined:
    Jul 24, 2017
    Posts:
    17
    I love the ability to use the same Interaction system to interact with the Unity UI event system.

    However I really need to get which hand selected the UI element. I could do this with a non-UI XR interactable but would be nice to use the normal UI. Any options open to me here?

    Thanks
     
  2. eitanbariboa

    eitanbariboa

    Joined:
    Mar 19, 2020
    Posts:
    26
    Did you find solution for that?
     
  3. nilagard

    nilagard

    Joined:
    Jan 13, 2017
    Posts:
    77
    An extremely easy solution to this is to give each hand a separate tag and use comparetag when the ui detects input