Wearable Only
Protected
constructorThe name of the Asset in Lens Studio.
Readonly
uniqueTriggered when the hand in view starts performing a grab pose, enabling interactions such as grabbing virtual objects or making a fist.
Triggered when the hand in view ends performing a grab pose and opens the hand, disabling interactions such as grabbing virtual objects or making a fist.
Triggered when a phone is detected in a hand. Note: Only smartphone-like objects are detected.
Details:
The event indicates that the state of a hand not holding a phone has changed to a hand holding a phone. If a Lens contains a GestureModel
and has subscribed to getIsPhoneInHandBeginEvent
, an initial event is always sent at the start of the Lens if a hand already holds a phone.
For technical reasons, if a Lens does not initially subscribe to getIsPhoneInHandBeginEvent
, but subscribes at a later time, no initial event will be sent after subscription.
Triggered when a phone is no longer detected in a hand. Note: Only smartphone-like objects are considered.
Details:
The event indicates that the state of a hand holding a phone has changed to a hand not holding a phone. If a Lens contains a GestureModel
and has subscribed to getIsPhoneInHandEndEvent
, an initial event is always sent at the start of the Lens if a hand does not hold a phone.
For technical reasons, if a Lens does not initially subscribe to getIsPhoneInHandEndEvent
, but subscribes at a later time, no initial event will be sent after subscription.
Triggered when the left index finger from one hand touches the palm on the opposite hand. Currently, only the palm tap to the left hand is supported.
Triggered when the left index finger from one hand lifts from the palm on the opposite hand after touching. Currently, only the palm tap to the left hand is supported.
Triggered when the thumb and index fingers of the hand in view are pinched together.
Get the strength of a pinch between the thumb and index fingers of the hand in view.
Triggered when the thumb and index fingers of the hand in view are separated after being pinched together.
Triggered when the user has an intent to target a digital content in space.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Allows to detect hand gestures using machine learning algorithms.
See
Gesture Module guide.
Example