InterfaceUpperBodyTrackingAsset

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;
interface UpperBodyTrackingAsset {
    name: string;
    uniqueIdentifier: string;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

name: string

The name of the Asset in Lens Studio.

uniqueIdentifier: string

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean