Forum Discussion
VJ76
6 years agoProtege
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?
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device