Snap Zone
Snap zones are zones in which objects can be placed within and the object will snap towards this zone. This feature is useful when you want specific objects to be placed in specific places.
To create a snap zone, start off with creating any 3D object. In our case, we'll create a 3d Sphere. On the sphere collider that comes with the sphere, check the trigger function on.
Next, add to the 3d object an XR Socket Interactor
XR Socket Interactor
A socket Interactor works like an XR Grab Interactor component except it does not require the command of a player. It will automatically try and grab an object within its reach. Make sure the isTrigger is checked for that feature.
We can change the outside sphere material to be a transparent material so that we can see within the snap zone.
Testing
*At this point I upgraded my standard shader to the Universal Rendering pipeline so the materials will be looking different* see March 8th post to learn how.
As you can see within the game, the flashlight object that we added an XR Grab interactable is held within the sphere snap zone.