I am trying to figure out how to allow my players to put in a code to join a group room using photon. Unity seems to suggest using a graphics raycaster but in most sample code it uses mouse input for the input data like in this example :

//Create the PointerEventData with null for the EventSystem
PointerEventData ped = new PointerEventData(null);
//Set required parameters, in this case, mouse position
ped.position = Input.mousePosition;

I have been able to interact by putting a collider on the UI element and a collider on the OVR Player's hand but how would I create a pointer like in oculus home to interact with the GUI ?


1 Answer 1


Sounds like you are using Oculus OVR, so then you can use OVR Ray interactions (documentation here)

If you instead wanna use Unitys XR Interaction Toolkit, your can use the XR Interaction (documentation here)

There is also similar things for Microsofts MRTK (documentation here).

  • 1
    \$\begingroup\$ This answer would be even better if it included a short sample or summary of how to use those features, rather than only a link. \$\endgroup\$
    – DMGregory
    Jan 12 at 14:00
  • 1
    \$\begingroup\$ Thanks for taking the time to answer Jonas ! :) \$\endgroup\$
    – Doug Ray
    Jan 17 at 6:10
  • \$\begingroup\$ Sorry @DMGregory, I don't get payed to answer questions here. Don't have time to write a long answer, thought that Doug could find the relevant answer in the always updating documentation them self. \$\endgroup\$ Jan 25 at 21:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .