Bitbybit Docs
    Bereite Suchindex vor...

    Klasse 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

    Konstruktoren

    get

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

      Parameter

      Rückgabewert 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.

      Parameter

      Rückgabewert 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.

      Parameter

      Rückgabewert 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.

      Rückgabewert Promise<WebXRDefaultExperience>

      The default XR experience