Namespace Leap::Attachments

namespace Leap.Attachments

Enums

enum AttachmentPointFlags

Flags for attachment points on the hand.

Values:

None
Wrist
Palm
ThumbProximalJoint
ThumbDistalJoint
ThumbTip
IndexKnuckle
IndexMiddleJoint
IndexDistalJoint
IndexTip
MiddleKnuckle
MiddleMiddleJoint
MiddleDistalJoint
MiddleTip
RingKnuckle
RingMiddleJoint
RingDistalJoint
RingTip
PinkyKnuckle
PinkyMiddleJoint
PinkyDistalJoint
PinkyTip
PinchPoint
class AttachmentHand : public MonoBehaviour

This MonoBehaviour is managed by an AttachmentHands component on a parent MonoBehaviour. Instead of adding AttachmentHand directly to a GameObject, add an AttachmentHands component to a parent GameObject to manage the construction and updating of AttachmentHand objects.

class AttachmentHandEnableDisable : public MonoBehaviour
class AttachmentHands : public MonoBehaviour

Add an GameObject with this script to your scene if you would like to have a Transform hierarchy that will follow various important points on a hand, whether for visuals or for logic. The AttachmentHands object will maintain two child objects, one for each of the player’s hands. Use the Inspector to customize which points you’d like to see in the hierarchy beneath the individual AttachmentHand objects.

class AttachmentPointBehaviour : public MonoBehaviour

Simple container class for storing a reference to the attachment point this transform corresponds to within an AttachmentHand. Also contains mappings from a single AttachmentPointFlags flag constant to the relevant bone on a Leap.Hand; these mappings can be accessed statically via GetLeapHandPointData().

Can also be used to refer to a single AttachmentPointFlags flag constant (implicit conversion).

class AttachmentPointFlagsExtensions