Preparing search index...

    3D hand tracking asset for hand pose and gesture recognition.

        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 HandTracking3DAsset and set the hand type
    const asset = model.project.assetManager.createNativeAsset(
    'HandTracking3DAsset', 'LeftHandTracker', dest
    ) as Editor.Assets.HandTracking3DAsset;
    asset.handType = Editor.Assets.HandTracking3DHandType.Left;
    console.log(`Created ${asset.name}, handType: ${asset.handType}`);

    // Assign to an ObjectTracking3D component
    const scene = model.project.scene;
    const obj = scene.createSceneObject('HandTracker');
    const tracker = obj.addComponent('ObjectTracking3D');
    tracker.trackingAsset = asset;
    tracker.trackPosition = true;

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cacheFile: Path

    Path to the cached asset file.

    Import metadata for the asset.

    Which hand (left or right) this asset represents.

    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