Interface WebXRFallbackLayerWrapper
interface WebXRFallbackLayerWrapper {
isNative: false;
layer: null;
layerType: WebXRSpatialLayerType;
mesh: Mesh;
texture: BaseTexture;
transformNode: TransformNode;
dispose(): void;
updateFromTransformNode(worldScalingFactor?: number): void;
}
isNative: false;
layer: null;
layerType: WebXRSpatialLayerType;
mesh: Mesh;
texture: BaseTexture;
transformNode: TransformNode;
dispose(): void;
updateFromTransformNode(worldScalingFactor?: number): void;
}
Properties
Readonlyis Native
isNative: false
Whether this wrapper is backed by a native WebXR composition layer.
Readonlylayer
layer: null
The native layer is always null for a fallback wrapper.
Readonlylayer Type
layerType: WebXRSpatialLayerType
The requested WebXR composition layer type.
Readonlymesh
mesh: Mesh
The Babylon mesh that approximates the requested composition layer.
Readonlytexture
texture: BaseTexture
The texture displayed by the fallback mesh.
Readonlytransform Node
transformNode: TransformNode
The Babylon node whose world position and rotation control the fallback mesh.
Methods
dispose
-
Disposes the fallback mesh, material, and any resources owned by this wrapper.
Returns void
update From Transform Node
-
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
- worldScalingFactor: number = 1
Wraps a mesh used when a requested native WebXR composition layer is unavailable.