Forum Discussion
dannox
8 years agoHonored Guest
Laser Pointer instead of Gaze Pointer
Hi All,
In Unity I tried to replace laser pointer using Oculus touch instead of gazepointer like present in the samples. The problem is that I don't know how to trigger events in UI components.
Is there somewhere an example to get inspiration?
thanks
In Unity I tried to replace laser pointer using Oculus touch instead of gazepointer like present in the samples. The problem is that I don't know how to trigger events in UI components.
Is there somewhere an example to get inspiration?
thanks
4 Replies
Replies have been turned off for this discussion
- InnerExodusAdventurerHi,
Have you experimented with the Oculus Sample Framework for Unity? There are quite a few sample scenes that will allow you to jump in and start familiarizing yourself. I would recommend reading up on what it includes at the following link:
https://developer.oculus.com/documentation/unity/latest/concepts/unity-sample-framework/
Feel free to download this framework, as well as the Avatar SDK at the following links respectively:
https://developer.oculus.com/downloads/package/oculus-sample-framework-for-unity-5-project/
https://developer.oculus.com/downloads/package/oculus-avatar-sdk/ - 115bwmHonored GuestAlso looking to do this, those materials don't seem to help :(
- WeitinProtegeThe Oculus Sample Framework is difficult to sift through. Here's the quickest way to get set up.
- Use the UIHelpers prefab in the Oculus Integrations.
- Set the RayTransform in OVRInputModule to a handAnchor.
- Add OVRRaycaster component to your canvas.
Beware about tinkering with the laser pointer/event system/input module; everything is fairly coupled together so it's hard to modify. If you want to disable the laser pointer, I've found the least problematic way is to destroy and instantiate the UIHelpers prefab. - FuzzyOnionProtegeThank you for your comment Wei Tin, I was updating my project to the latest Oculus Sample Framework and I could not find any documentation on how to implement the laser pointer. This did the trick!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 9 years agoAnonymous