Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VJ76's avatar
VJ76
Protege
6 years ago

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

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?

 
Replies have been turned off for this discussion