Simple Interaction using XR Raycast in VR - Unity3d

Custom Interactable Events

We can create an empty game object, for the purpose of testing we're just going to make a 3d Cube object.

Add XR Simple Interactable script.

For example, let's change the mesh render of the cube once the cube has been selected:

Under XR Simple Interacatable Script - > Interactable Events - > On Select we can create an event to trigger the cube to change mesh render on select. 


In addition, we can also custom run any other scripts. For example, a trigger that opens up another door or a trigger to load the next level.