An asset containing the upper body tracker. It is optimized to track with the face and in selfie use cases.
function createUpperBodyTrackingAsset() { var asset = global.assetSystem.createAsset("Asset.UpperBodyTrackingAsset"); return asset;}// 3D Upper Body Tracking (skeleton)var object3D = script.getSceneObject().getComponent("Component.ObjectTracking3D");object3D.trackingAsset = createUpperBodyTrackingAsset();object3D.objectIndex = script.faceIndex; Copy
function createUpperBodyTrackingAsset() { var asset = global.assetSystem.createAsset("Asset.UpperBodyTrackingAsset"); return asset;}// 3D Upper Body Tracking (skeleton)var object3D = script.getSceneObject().getComponent("Component.ObjectTracking3D");object3D.trackingAsset = createUpperBodyTrackingAsset();object3D.objectIndex = script.faceIndex;
The name of the Asset in Lens Studio.
Readonly
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.
other
An asset containing the upper body tracker. It is optimized to track with the face and in selfie use cases.
Example