Hand Attachments¶
Attachment hands allow you to attach objects to any part of your hand. This is great for hand ui and inventories.
Attachment hands work well with any other hands that you have in the scene as they are invisible under regular conditions.
Note
Sample scene can be found in:
Assets/Samples/Ultraleap Tracking/x.x.x/XR Examples/1. Basics/2. Attachment Hands.unity
Quick Start with attachment hands¶
For this example, we assume that you have just finished the Your First Project Guide.
Add attachment hands to your scene from the toolbar menu. This can be found in
Ultraleap > Hands > Attachment Hands
.
Click on the new Attachment Hands item in the Hierarchy. This will have a script called
Attachment Hands
. In the Attachment Transforms section, you can select which joints you would like to use. For this example, we will just use the palm as it is the best place to anchor hand attached UI.
If you drop down the left attachment hand fully in the hierarchy, you should see this (replace “Palm” with your chosen joint).
You may delete the 3 capsules and the Example Transform highlighted in the image below. They are there to show you where the attachment will be.
Attach your items as a children of the palm object. This will attach your object to the palm as shown below. If you play your scene now, the object will be attached to your hand and will move whenever you move your hands.
Other Great Uses for Hand Attachments¶
If you want to see what else you can do by attaching objects to your hands, check out the guides below!
Attachment hands UI is a great way to keep UI at your fingertips at all times.
Anchoring Objects allows you to have objects you can place with the player and out in your virtual world.