ObjectSpecificData
ClassProvides additional data for the tracked object.
- Available on all platforms
Provides additional data for the tracked object. For example, with hand tracking, you can figure out whether the tracked hand is the left hand by accessing the isLeft property [true/false], as well as the probability of this data through the isLeftProbability property [0-1].
Index
Methods
Example
// @input Component.ObjectTracking handTracking
var handSpecificData = script.handTracking.objectSpecificData;
if (handSpecificData) {
var isLeftHand = handSpecificData.isLeft;
print(isLeftHand);
}
Extends
Extended by
Methods
getTypeName()
staticgetTypeName():TypeName<ObjectSpecificData>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<ObjectSpecificData>
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean