Preparing search index...

    3D body tracking asset with optional hand tracking support.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const dest = new Editor.Model.SourcePath(new Editor.Path(''), Editor.Model.SourceRootDirectory.Assets);

    // Create a BodyTracking3DAsset via createNativeAsset
    const asset = model.project.assetManager.createNativeAsset(
    'BodyTracking3DAsset', 'BodyTracker', dest
    ) as Editor.Assets.BodyTracking3DAsset;

    // Enable hand tracking on the body tracking asset
    asset.handTrackingEnabled = true;
    console.log(`Created ${asset.name}, handTrackingEnabled: ${asset.handTrackingEnabled}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cacheFile: Path

    Path to the cached asset file.

    Import metadata for the asset.

    handTrackingEnabled: boolean

    Enable or disable hand tracking for this asset.

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    The name of the asset.

    type: string

    The entity's type.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean