Forum Discussion
Playmebit
6 months agoHonored Guest
Unity 6.1 + Meta Quest + Building Blocks + Simple Interactable
Probably so simple... but I've been stopped here for days...
Steps so far:
- I start a new project with Unity 6.1 with template "Mixed Reality (MR) core"
- Switched to Android platform on build profiles
- Imported Meta XR all in one package
- Imported Meta MR Utility Kit package
- Removed all items on my sample scene
- Executed Meta XR Tools -> project setup tool
- Selected OpenXR Plugin on the XR plugin management
- Added Building Blocks "Camera Rig" + "Passthrough" + "Controller Tracking" + "Ray Interaction"
- Placed a game object (mesh + material) on the scene and added a collider to it and a "Ray Interactable" script
Up to this I run and everything goes right: my object appears on the scene, the passthrough works well and I can use my hands or the controllers to display a ray that impacts the object with the required cursor.
What I cannot reach is to detect ray events on the object: I would like to change the color of the object material when the ray enters into the object or to make the object dissapear if I press the trigger on the controller when the cursor is on it (I guess the 'select' or 'activate' event, I tried both). So simple... but so hard to achieve...
I have tried to add a "XR Simple Interactable" script the same level as the "Ray Interactable", but does not work.
Is there anything on my project config wrong? If I use the "Project Validation" on the XR Plugin Management there are no error nor warnings.
Is there anyone who can give me some light on it? maybe any free o paid tutorial on how to configure the environment for this case?
Many thanks in advance!
1 Reply
Replies have been turned off for this discussion
- RiverExplorerStart Partner
FYI: The Oculus (vs OpenXR) sample version from Meta works.
https://github.com/oculus-samples/Unity-MetaXRInteractionSDK-AvatarSample
I have not had much luck with the OpenXR and intractables.
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
- 2 years ago