Interface IWebXRHitTestFeature<T>
Type parameters
Hierarchy
-
IWebXRFeature
- IWebXRHitTestFeature
Implemented by
Index
Properties
attachedSearch playground for attached
Is this feature attached
Optional depends OnSearch playground for dependsOn
A list of (Babylon WebXR) features this feature depends on
disable Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
Optional getXRSession Init ExtensionSearch playground for getXRSessionInitExtension
If this feature requires to extend the XRSessionInit object, this function will return the partial XR session init object
Type declaration
-
-
Returns Promise<Partial<XRSessionInit>>
-
is DisposedSearch playground for isDisposed
Was this feature disposed;
on Hit Test Result ObservableSearch playground for onHitTestResultObservable
Triggered when new babylon (transformed) hit test results are available
Optional xr Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name, if applicable (like anchor, hit-test, or hand-tracking)
Methods
attachSearch playground for attach
-
Attach the feature to the session Will usually be called by the features manager
Parameters
-
Optional force: boolean
should attachment be forced (even when already attached)
Returns boolean
true if successful.
-
detachSearch playground for detach
-
Detach the feature from the session Will usually be called by the features manager
Returns boolean
true if successful.
disposeSearch playground for dispose
-
Releases all held resources
Returns void
is 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
Returns boolean
whether or not the feature is compatible in this environment
An interface for all Hit test features