Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Playmebit's avatar
Playmebit
Honored Guest
6 months ago

Unity 6.1 + Meta Quest + Building Blocks + Simple Interactable

Probably so simple... but I've been stopped here for days...

Steps so far:

  1. I start a new project with Unity 6.1 with template "Mixed Reality (MR) core"
  2. Switched to Android platform on build profiles
  3. Imported Meta XR all in one package
  4. Imported Meta MR Utility Kit package
  5. Removed all items on my sample scene
  6. Executed Meta XR Tools -> project setup tool
  7. Selected OpenXR Plugin on the XR plugin management
  8. Added Building Blocks "Camera Rig" + "Passthrough" + "Controller Tracking" + "Ray Interaction"
  9. 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!