XRFrame

Overview

A WebXR Device API XRFrame object is passed into the requestAnimationFrame() callback function and provides access to the information needed in order to render a single frame of animation for an XRSession describing a VR or AR sccene.

Location

Properties


session

 

property session: dynamic read;

 

dynamic session { get; }

 

var session: dynamic { get{} }

 

dynamic session { __get; }

 

ReadOnly Property session() As dynamic

Required Methods


getPose

Returns an XRPose object representing the spatial relationship between the two specified XRSpace objects.

 

method getPose(parspace: dynamic; parbaseSpace: dynamic): dynamic

 

dynamic getPose(dynamic parspace, dynamic parbaseSpace)

 

func getPose(_ parspace: dynamic, _ parbaseSpace: dynamic) -> dynamic

 

dynamic getPose(dynamic parspace, dynamic parbaseSpace)

 

Function getPose(parspace As dynamic, parbaseSpace As dynamic) As dynamic

Parameters:

  • parspace:
  • parbaseSpace:

getViewerPose

Returns an XRViewerPose describing the viewer's position and orientation in a given XRReferenceSpace.

 

method getViewerPose(parreferenceSpace: dynamic): XRViewerPose

 

XRViewerPose getViewerPose(dynamic parreferenceSpace)

 

func getViewerPose(_ parreferenceSpace: dynamic) -> XRViewerPose

 

XRViewerPose getViewerPose(dynamic parreferenceSpace)

 

Function getViewerPose(parreferenceSpace As dynamic) As XRViewerPose

Parameters:

  • parreferenceSpace: