Sockets Interactors for inventory!

addam davis
2 min readJun 12, 2024

--

Objective: Create a space to hold your things!

In this tutorial I’ll show you how to use a Socket Interactor to hold your items. In the last tutorial we used a Socket for a key and lock and attached the socket to an object in the environment. For this tutorial we are going to attach the socket to our player.

To begin we are going to create a child character to our XR Origin.

Now we are going to have to make small adjustments by dragging the object onto the players body into the position you desire. Once you have positioned your object, you can turn off the mesh renderer and add a Socket Interactor component.

In the socket component you will need to set the Interaction Layer Mask to the same layer as the object you are wanting to put into this “pocket” object.

Now when you have the object in your hand you can place it into this “pocket” and hold it leaving your hands free to continue exploring. Don’t be afraid to experiment with your sockets and I’ll see you in the next tutorial!

--

--