WebXRAbstractFeature

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 IWebXRFeature you are in no way obligated to use this class

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Find examples in Playground

Properties

disableAutoAttach

Find examples in Playground
disableAutoAttach: boolean

Should auto-attach be disabled?

Accessors

attached

Find examples in Playground
  • get attached(): boolean
  • Is this feature attached

    Returns boolean

Methods

attach

Find examples in Playground
  • attach(force?: boolean): boolean
  • attach this feature

    Parameters

    • Optional force: boolean

      should attachment be forced (even when already attached)

    Returns boolean

    true if successful, false is failed or already attached

detach

Find examples in Playground
  • detach(): boolean
  • detach this feature.

    Returns boolean

    true if successful, false if failed or already detached

dispose

Find examples in Playground
  • dispose(): void
  • Dispose this feature and all of the resources attached

    Returns void

Generated using TypeDoc