Using a Socket Interaction in XR
<p>I’ve added an <strong>XR Grab Interactable</strong> and a <strong>collider </strong>to my key already. Now, we want our key to interact with the key hole in order to open this door.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:380/1*pCqmZ7RgGi9e1OsGsJusZA.png" style="height:359px; width:345px" /></p>
<p>Let’s start by selecting our key hole, and adding a<strong> XR Socket Interactor</strong> component.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*ehYj2pmsYpWJ50qo36uUsQ.png" style="height:455px; width:700px" /></p>
<p>A <strong>Socket Interactor</strong> is similar to a <strong>Direct Interactor</strong> except we don’t put it on our hands, but on an object. We can place an <strong>Attach Transform</strong> into the field if we want a specific place for the key to interact with.</p>
<p>The <strong>Interactable Hover Meshes</strong> will show a preview of where the object will be inserted if we hover over it. We would just have to place a<strong> hover event</strong> within the<strong> Interactor Event</strong>. The <strong>material </strong>fields will auto populate.</p>
<p><a href="https://medium.com/@eveciana21/using-a-socket-interaction-in-xr-d012e93d2750"><strong>Visit Now</strong></a></p>