Search Unity

Resolved Checking which Oculus controller has clicked a button

Discussion in 'VR' started by dkimboyle, Apr 6, 2021.

  1. dkimboyle

    dkimboyle

    Joined:
    Feb 23, 2019
    Posts:
    7
    Hi, can anyone suggest a way I can check which Oculus controller (left or right) has hovered over a UI button? At the moment, I can detect whether a raycast/pointer has entered a button image but I cannot distinguish left from right. Using the new input system but struggling to find a solution.

    Thanks,

    David
     
  2. dkimboyle

    dkimboyle

    Joined:
    Feb 23, 2019
    Posts:
    7
    Figured this one out. For anyone interested, the solution was to access a boolean "hit" flag on the pointer attached to each anchor.