LegacyVRCameraRigSystem

LegacyVRCameraRigSystem

The LegacyVRCameraRigSystem manages the entity hierarchy and the VR start/stop APIs that the VRAP
asset pack depends on to function. Future XR support will be exposed via different systems, hence
the "Legacy" prefix on this class. No further feature development in this file is expected after
the 0.28 release.

Constructor

new LegacyVRCameraRigSystem()

Members

vrEntityHierarchy

Gets the latest information about the VRCameraRig -> "Tracker" -> HMDCamera entity
hierarchy

Methods

_setSessionState()

Initializes the transforms for the entity hierarchy, sets the current Viewer, and
fires an even to notify customers that VR presentation has begun.

hasExternalDisplay() → {boolean}

Identify if the currentDisplay has externalDisplay. This does not exist in WebXR
and is now deprecated

startVR()

Called to start presenting VR.
Query capability first before this function; this is called from a user gesture and needs
navigator.xr.requestSession() to be the first promise in the chain

stopVR()

Called to stop presenting VR.