XRSessionState
Properties of a WebXR session
.frame: null | XRFrame
Current WebXR frame
.session: XRSession
Current WebXR session
.sessionMode: XRSessionMode
Current WebXR session mode
.baseLayer: XRProjectionLayer | XRWebGLLayer
Current WebXR base layer
.currentReferenceSpace: XRReferenceSpace
Current reference space type used for retrieving eye, head, hand and joint poses
.currentReferenceSpace
Set current reference space type used for retrieving eye, head, hand and joint poses
.currentReferenceSpaceType: XRReferenceSpaceType
Current WebXR reference space type or null
if not a default reference space
.framebuffers: WebGLFramebuffer[]
Current WebXR framebuffer
.referenceSpaceForType(type: XRReferenceSpaceType) ⇒ null | XRReferenceSpace
.referenceSpaceForType(type: ‘viewer’) ⇒ XRReferenceSpace
Get a WebXR reference space of a given reference space type.
Returns: Reference space, or null
if there’s no reference space
of the requested type available
Param | Type | Description |
---|---|---|
type | XRReferenceSpaceType | Type of reference space to get |