This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The WebXR Device API interface XRReferenceSpaceEvent represents an event sent to an XRReferenceSpace. Currently, the only event that uses this type is the reset event.
XRReferenceSpaceEvent()Returns a new XRReferenceSpaceEvent with the specified type and configuration.
In addition to inheriting the properties available on the parent interface, Event, XRReferenceSpaceEvent objects include the following properties:
referenceSpace Read only
An XRReferenceSpace indicating the reference space that generated the event.
transform Read only
An XRRigidTransform object indicating the position and orientation of the specified referenceSpace's native origin after the event, defined relative to the coordinate system before the event.
While XRReferenceSpaceEvent does not define any methods, it inherits the methods of its parent interface, Event.
resetThe reset event is sent to a reference space when its native origin is changed due to a discontinuity, recalibration, or device reset. This is an opportunity for your app to update any stored transforms, position/orientation information, or the like—or to dump any cached values based on the reference's space's origin so you can recompute them as needed.
| Specification |
|---|
| WebXR Device API> # xrreferencespaceevent-interface> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
XRReferenceSpaceEvent |
79 | 79 | No | 66 | No | 79 | No | 57 | No | 11.2 | No | No |
XRReferenceSpaceEvent |
79 | 79 | No | 66 | No | 79 | No | 57 | No | 11.2 | No | No |
referenceSpace |
79 | 79 | No | 66 | No | 79 | No | 57 | No | 11.2 | No | No |
transform |
79 | 79 | No | 66 | No | 79 | No | 57 | No | 11.2 | No | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent