- Preparing search index...
- The search index is not available
Class WebXRAbstractFeature Abstract
Construct a new (abstract) WebXR feature
the xr session manager for this feature
Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
DisposedSearch playground for isDisposed
Is this feature disposed?
Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Is this feature attached
attachSearch playground for attach
attach this feature
Optional force: boolean
should attachment be forced (even when already attached)
true if successful, false is failed or already attached
detachSearch playground for detach
detach this feature.
true if successful, false if failed or already detached
disposeSearch playground for dispose
Dispose this feature and all of the resources attached
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
This is the base class for all WebXR features. Since most features require almost the same resources and callbacks, this class can be used to simplify the development Note that since the features manager is using the
IWebXRFeatureyou are in no way obligated to use this class