Preparing search index...

    Tracks and matches 3D objects in the scene using pose estimation.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;
    const assetManager = model.project.assetManager;

    // Create hand tracking assets (same pattern as PresetsRegistry)
    const assetsPath = new Editor.Path('3D Hand Tracking Assets');
    const rightHandAsset = assetManager.createNativeAsset(
    'HandTracking3DAsset', 'Hand Tracking Right', assetsPath as unknown as Editor.Model.SourcePath
    ) as Editor.Assets.HandTracking3DAsset;
    rightHandAsset.handType = Editor.Assets.HandTracking3DHandType.Right;

    // Create a scene object and add ObjectTracking3D
    const obj = scene.createSceneObject('3D Hand Tracking Right');
    const tracking = obj.addComponent('ObjectTracking3D') as Editor.Components.ObjectTracking3D;
    tracking.trackingAsset = rightHandAsset;
    console.log(`ObjectTracking3D: asset="${rightHandAsset.name}", handType=${rightHandAsset.handType}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean

    Whether the component is active.

    id: Uuid

    The unique id of the entity.

    matchingRootObject: SceneObject

    Scene object root matched to the tracked asset.

    meta: Meta

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

    name: string

    Name of the component.

    objectIndex: number

    Index of the matched object in the tracking results.

    sceneObject: SceneObject

    Scene object this component is attached to.

    trackingAsset: Object3DAsset

    3D asset to track.

    trackingMode: TrackingMode

    Transform properties to track.

    trackPosition: boolean

    Whether position tracking is applied.

    type: string

    The entity's type.

    Methods

    • Returns the name of this object's type.

      Returns string

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

      Parameters

      • type: string

      Returns boolean