Class WebXREnterExitUIOptions
Index
Constructors
constructor
-
Returns WebXREnterExitUIOptions
Properties
Optionalcustom Buttons
User provided buttons to enable/disable WebXR. The system will provide default if not set
Optionalignore Session Granted Event
If set, the sessiongranted event will not be registered. sessiongranted is used to move seamlessly between WebXR experiences.
If set to true the user will be forced to press the "enter XR" button even if sessiongranted event was triggered.
If not set and a sessiongranted event was triggered, the XR session will start automatically.
Optionalon Error
Called with the error from enterXRAsync when entering XR through the UI fails.
The button still displays ERROR; the application decides whether to show a message or rebuild with WebGL.
Optionaloptional Features
A list of optional features to init the session with
Optionalreference Space Type
A reference space type to use when creating the default button. Default is local-floor
Optionalrender Target
Context to enter xr with
Optionalrequired Features
A list of optional features to init the session with
Optionalsession Mode
A session mode to use when creating the default button. Default is immersive-vr
Options to create the webXR UI