Class XRReferenceSpaceEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
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.
[Value("XRReferenceSpaceEvent")]
public class XRReferenceSpaceEvent : Event
- Inheritance
-
XRReferenceSpaceEvent
- Inherited Members
Remarks
Constructors
XRReferenceSpaceEvent()
public XRReferenceSpaceEvent()
XRReferenceSpaceEvent(string, XRReferenceSpaceEventInit)
The XRReferenceSpaceEvent()
constructor is used to create a new XRReferenceSpaceEvent object, which
represents an event regarding the state of a WebXR reference space object,
XRReferenceSpace.
public XRReferenceSpaceEvent(string type, XRReferenceSpaceEventInit eventInitDict)
Parameters
typestringeventInitDictXRReferenceSpaceEventInit
Remarks
Properties
ReferenceSpace
The read-only XRReferenceSpaceEvent propertyreferenceSpace specifies the reference space which is the
originator of the event.
[Value("referenceSpace")]
public XRReferenceSpace ReferenceSpace { get; }
Property Value
- XRReferenceSpace
An XRReferenceSpace indicating the source of the event.
Remarks
Transform
The read-only XRReferenceSpaceEvent propertytransform indicates the position and orientation of the
affected ReferenceSpace's
native origin after the changes the event represents are applied. Thetransform is defined using the old coordinate system, which allows it to be
used to convert coordinates from the pre-event coordinate system to the post-event
coordinate system.
[Value("transform")]
public XRRigidTransform? Transform { get; }
Property Value
- XRRigidTransform
An XRRigidTransform object providing a transform that can be used to
convert coordinates from the pre-event coordinate system to the post-event coordinate
system.