cancel
Showing results for 
Search instead for 
Did you mean: 

How to get hold of the selected gameobject with the laserpointer (Oculus Intergration)

VJ76
Protege
Hello, I'm developing for the Oculus Quest / Rift.

Goal: When i select a gameobject with the laserpointer that comes with the oculust intergration package, it has to display the name of the selected gameobject in a ui text component.

I'm close to realising this, but i'm stuck at this moment.
i've added the OVR Physics Raycaster to the OVR CameraRig and added and a collider and event trigger (Pointer Click) to the GameObject that i want to select.
Also i have a script that is getting hold of the text component of the UI.
It is now regonizing the gameobject.

Question: How can i get hold of the selected gameobject?

 
0 REPLIES 0