Preparing search index...

    Class UpperBodyTrackingAsset

    Configures 3D Upper Body Tracking for the ObjectTracking3D component.

    It is optimized to track with the face and in selfie use cases.

    Lens Scripting Version 280

    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;

    Hierarchy (View Summary)

    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    ""
    
    uniqueIdentifier: string

    Lens Scripting Version 176

    Methods

    • 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 string

      Lens Scripting Version 280

    • 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