大网数据广告活动
Web 标准与前端开发

XRReferenceSpaceEvent

· 52CE 我爱测

The WebXR Device API interface **`XRReferenceSpaceEvent`** represents an event sent to an XRReferenceSpace. Currently, the only event that uses this type is the XRReferenceSpace.reset_event event.

WebXR Device API

The WebXR Device API interface XRReferenceSpaceEvent represents an event sent to an XRReferenceSpace. Currently, the only event that uses this type is the XRReferenceSpace.reset_event event.

Constructor

  • XRReferenceSpaceEvent.XRReferenceSpaceEvent
    • : Returns a new XRReferenceSpaceEvent with the specified type and configuration.

Instance properties

In addition to inheriting the properties available on the parent interface, Event, XRReferenceSpaceEvent objects include the following properties:

  • XRReferenceSpaceEvent.referenceSpace
    • : An XRReferenceSpace indicating the reference space that generated the event.
  • XRReferenceSpaceEvent.transform
    • : 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.

Instance methods

While XRReferenceSpaceEvent does not define any methods, it inherits the methods of its parent interface, Event.

Event types

  • XRReferenceSpace.reset_event
    • : The 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.

Specifications

Browser compatibility

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。