Bitbybit Docs
    Preparing search index...

    Class BabylonWebXRBase

    The building blocks the webXr.simple entry points are made of, for applications that hold the class directly: creating the default XR experience from the full set of options, or with none, and reading its base experience and feature manager to add features such as hand tracking or hit testing yourself.

    Index

    Constructors

    get

    • Reads the base experience helper of a default XR experience, which manages the session itself and is what the feature manager hangs off.

      Parameters

      Returns WebXRExperienceHelper

      The base experience helper

    • Reads the feature manager of a base experience, through which XR features such as hand tracking, hit testing or anchors are enabled and configured.

      Parameters

      Returns WebXRFeaturesManager

      The feature manager

    scene

    • Starts the default WebXR experience with the given options, which choose the session features to enable, the floor meshes for teleporting and the per-feature settings.

      Parameters

      Returns Promise<WebXRDefaultExperience>

      The default XR experience

    • Starts the default WebXR experience with the engine's defaults: the enter-XR button, pointer selection and teleportation with no floor meshes.

      Returns Promise<WebXRDefaultExperience>

      The default XR experience