Using a Socket Interaction in XR

<p>I&rsquo;ve added an&nbsp;<strong>XR Grab Interactable</strong>&nbsp;and a&nbsp;<strong>collider&nbsp;</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&rsquo;s start by selecting our key hole, and adding a<strong>&nbsp;XR Socket Interactor</strong>&nbsp;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&nbsp;<strong>Socket Interactor</strong>&nbsp;is similar to a&nbsp;<strong>Direct Interactor</strong>&nbsp;except we don&rsquo;t put it on our hands, but on an object. We can place an&nbsp;<strong>Attach Transform</strong>&nbsp;into the field if we want a specific place for the key to interact with.</p> <p>The&nbsp;<strong>Interactable Hover Meshes</strong>&nbsp;will show a preview of where the object will be inserted if we hover over it. We would just have to place a<strong>&nbsp;hover event</strong>&nbsp;within the<strong>&nbsp;Interactor Event</strong>. The&nbsp;<strong>material&nbsp;</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>
Tags: Interaction XR