You are on the editable version of MDN Web Docs

MDN 웹 문서 사용자로 보기:


이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRReferenceSpaceEventInit dictionary is used when calling the XRReferenceSpaceEvent() constructor to provide the values for its properties. Since the properties are read-only, this is the only opportunity available to set their values.

You will not usually need to use this, since these events are created by the WebXR infrastructure.


The XRReferenceSpace from which the event originated.
An XRRigidTransform which maps the old coordinate system (from before the changes indicated by this event) to the new coordiante system.

Usage notes

All of this dictionary's properties must have valid values set on them before calling the XRReferenceSpaceEvent() constructor.


This simple snippet calls the constructor to create a new reference space event of type reset.

let refSpaceEvent = new XRReferenceSpaceEvent("reset", {
      referenceSpace: myRefSpace,
      transform: myTransform


Specification Status Comment
WebXR Device API
The definition of 'XRReferenceSpaceEventInit' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.XRReferenceSpaceEventInit" (depth: 1) to the MDN compatibility data repository.

문서 태그 및 공헌자

이 페이지의 공헌자: Sheppy
최종 변경자: Sheppy,