Interface IWebXRMediaLayerCreationOptions<InitT>
interface IWebXRMediaLayerCreationOptions<InitT> {
fallbackMode?: "none" | "mesh";
layerInit?: Partial<InitT>;
transformNode?: TransformNode;
}
fallbackMode?: "none" | "mesh";
layerInit?: Partial<InitT>;
transformNode?: TransformNode;
}
Type Parameters
- InitT
the media layer initialization dictionary
Properties
Optionalfallback Mode
fallbackMode?: "none" | "mesh"
Uses a Babylon mesh and VideoTexture when XRMediaBinding is unavailable.
Import @babylonjs/core/XR/features/WebXRLayersFallback to enable this optional fallback.
Fallback is disabled by default.
Optionallayer Init
Initialization values for the media layer. Babylon supplies the current reference space when omitted.
Optionaltransform Node
A Babylon node whose world position and rotation will be synchronized with the layer. Babylon creates and owns a node when this is omitted.
Common options for creating an XRMediaBinding layer.