WebXR Feature for WebXR Depth Sensing Module
Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
DisposedSearch playground for isDisposed
Is this feature disposed?
Feature Attach ObservableSearch playground for onFeatureAttachObservable
Observers registered here will be executed when the feature is attached
Feature Detach ObservableSearch playground for onFeatureDetachObservable
Observers registered here will be executed when the feature is detached
Get Depth In Meters AvailableSearch playground for onGetDepthInMetersAvailable
Event that notify when
DepthInformation.getDepthInMeters is available.
getDepthInMeters method needs active XRFrame (not available for cached XRFrame)
Readonly optionsSearch playground for options
Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Static Readonly NameSearch playground for Name
The module's name
Static Readonly VersionSearch playground for Version
The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version
Is this feature attached
Describes which depth sensing data format ("ushort" or "float") is used.
Describes which depth-sensing usage ("cpu" or "gpu") is used.
Height of depth data. If depth data is not exist, returns null.
cached depth buffer
Scale factor by which the raw depth values must be multiplied in order to get the depths in meters.
Width of depth data. If depth data is not exist, returns null.
attach this feature Will usually be called by the features manager
Optional force: boolean
true if successful.
detach this feature.
true if successful, false if failed or already detached
Dispose this feature and all of the resources attached
Init ExtensionSearch playground for getXRSessionInitExtension
Extends the session init object if needed
augmentation object for the xr session init object.
CompatibleSearch playground for isCompatible
This function will be executed during before enabling the feature and can be used to not-allow enabling it. Note that at this point the session has NOT started, so this is purely checking if the browser supports it
whether or not the feature is compatible in this environment