API

Interface WebXRFallbackLayerWrapper

Wraps a mesh used when a requested native WebXR composition layer is unavailable.

interface WebXRFallbackLayerWrapper {
    isNative: false;
    layer: null;
    layerType: WebXRSpatialLayerType;
    mesh: Mesh;
    texture: BaseTexture;
    transformNode: TransformNode;
    dispose(): void;
    updateFromTransformNode(worldScalingFactor?: number): void;
}
Index
isNative: false

Whether this wrapper is backed by a native WebXR composition layer.

layer: null

The native layer is always null for a fallback wrapper.

layerType: WebXRSpatialLayerType

The requested WebXR composition layer type.

mesh: Mesh

The Babylon mesh that approximates the requested composition layer.

texture: BaseTexture

The texture displayed by the fallback mesh.

transformNode: TransformNode

The Babylon node whose world position and rotation control the fallback mesh.

  • Copies the transform node's world position and rotation to the fallback mesh without applying the node's scaling.

    Parameters

    • worldScalingFactor: number = 1

      the number of Babylon scene units represented by one meter

    Returns void