Using a Socket Interaction in XR

I’ve added an XR Grab Interactable and a collider to my key already. Now, we want our key to interact with the key hole in order to open this door.

Let’s start by selecting our key hole, and adding a XR Socket Interactor component.

Socket Interactor is similar to a Direct Interactor except we don’t put it on our hands, but on an object. We can place an Attach Transform into the field if we want a specific place for the key to interact with.

The Interactable Hover Meshes will show a preview of where the object will be inserted if we hover over it. We would just have to place a hover event within the Interactor Event. The material fields will auto populate.

Visit Now

Tags: Interaction XR