Class WebXRDefaultExperienceOptions
Index
Constructors
Properties
Constructors
constructor
-
Returns WebXRDefaultExperienceOptions
Properties
Optionaldisable Default UI
Enable or disable default UI to enter XR
Optionaldisable Hand Tracking
Should hand tracking be disabled. Defaults to false.
Optionaldisable Near Interaction
Should nearInteraction not initialize. Defaults to false.
Optionaldisable Pointer Selection
Should pointer selection not initialize. Note that disabling pointer selection also disables teleportation. Defaults to false.
Optionaldisable Teleportation
Should teleportation not initialize. Defaults to false.
Optionalfloor Meshes
Floor meshes that will be used for teleport
Optionalhand Support Options
optional configuration for hand tracking
Optionalignore Native Camera Transformation
If set to true, the first frame will not be used to reset position The first frame is mainly used when copying transformation from the old camera Mainly used in AR
Optionalinput Options
Optional configuration for the XR input object
Optionalnear Interaction Options
optional configuration for near interaction
Optionaloptional Features
A list of optional features to init the session with If set to true, all features we support will be added
Optionaloutput Canvas Options
optional configuration for the output canvas
Optionalpointer Selection Options
optional configuration for pointer selection
Optionalrendering Group Id
An optional rendering group id that will be set globally for teleportation, pointer selection and default controller meshes
Optionalteleportation Options
optional configuration for teleportation
Optionalui Options
Options for the default enter/exit UI, including session mode and reference space type.
Set onError here to receive XR entry failures (including WebGPU session negotiation failures)
when the default button is used. The application can then notify the user or create a new
WebGL engine and scene; Babylon.js cannot switch an existing scene's rendering backend.
When disableDefaultUI is true, handle rejections from baseExperience.enterXRAsync() instead.
Optionaluse Stable Plugins
When loading teleportation and pointer select, use stable versions instead of latest.
Options for the default xr helper