API

Class WebXRImageTracking

Image tracking for immersive AR sessions. Providing a list of images and their estimated widths will enable tracking those images in the real world.

Hierarchy (View Summary)

Index
dependsOn?: string[]

The dependencies of this feature, if any

disableAutoAttach: boolean = false

Should auto-attach be disabled?

isDisposed: boolean = false

Is this feature disposed?

onFeatureAttachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is attached

onFeatureDetachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is detached

onTrackableImageFoundObservable: Observable<IWebXRTrackedImage> = ...

An image was deemed trackable, and the system will start tracking it.

onTrackedImageUpdatedObservable: Observable<IWebXRTrackedImage> = ...

The image was found and its state was updated.

onUntrackableImageFoundObservable: Observable<number> = ...

This will be triggered if the underlying system deems an image untrackable. The index is the index of the image from the array used to initialize the feature.

read-only options to be used in this module

Name: "xr-image-tracking" = WebXRFeatureName.IMAGE_TRACKING

The module's name

Version: 1

The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version