API

Class WebXRTrackedSources

Exposes input sources that the XR runtime continues tracking while they are not active input sources.

Tracked sources are intentionally kept separate from XRSession.inputSources and Babylon's normal WebXR input/controller pipeline.

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

onTrackedSourceAddedObservable: Observable<XRInputSource> = ...

Notifies observers when a source enters the feature's current tracked source set.

onTrackedSourceRemovedObservable: Observable<XRInputSource> = ...

Notifies observers when a source leaves the feature's current tracked source set, including on detach.

Name: "xr-tracked-sources" = WebXRFeatureName.TRACKED_SOURCES

The module's name.

Version: 1

The Babylon version of this module.

This number does not correspond to the WebXR specification version.

  • get trackedSources(): readonly XRInputSource[]

    Gets a copy of the sources currently reported by XRSession.trackedSources.

    These sources are not added to XRSession.inputSources or Babylon's controller collection.

    Returns readonly XRInputSource[]