Technology: Unity + Meta Quest
by Suellen de Salles
Yes, once we have plane detection script running, we can place things in world where the planes are detected and a raycast is hitted by the player.
First it is necessary to have a plane detection of the environment, then it is possible to place items in world where the player hits/interact on a plane detected. The object is placed in the hitted position and rotation, and stays in that virtual environment.
Tutorial
Create new scene
Place the following building blocks: Passthrough, Camera Rig, Controller Tracking
Remove existing camera
Create an empty object, in this case called RaycastPlacement, and place the following component: Environment Raycast Manager and Environment Depth Manager
Environment Raycast Manager : Responsible to fire a raycast and get the first intersection pointEnvironment Depth Manager : Responsible to generate and manage depth from the real environmentUpdate or Install Unity OpenXR Meta
Create a script to handle raycast and prefab placement
Attach the script to the RaycastPlacement object and set the references

PENDING: Create Android build profile and test the apk
Blocking: Run Device is greyed
