Class WebXRPlatform
XRPlatform for WebXR.
Inheritance
WebXRPlatform
Inherited Members
Namespace: Evergine.WebXR
Assembly: Evergine.WebXR.dll
Syntax
public class WebXRPlatform : XRPlatform, IDependencyObject, IGetNativePointers
Constructors
WebXRPlatform(WebXRWindowsSystem, string)
Initializes a new instance of the WebXRPlatform class.
Declaration
public WebXRPlatform(WebXRWindowsSystem windowsSystem, string canvasId)
Parameters
Type | Name | Description |
---|---|---|
WebXRWindowsSystem | windowsSystem | WebXR windows system. |
string | canvasId | Canvas ID. |
Properties
Display
Gets the display provided by this XR device.
Declaration
public override Display Display { get; }
Property Value
Type | Description |
---|---|
Display |
Overrides
EyeCount
Gets the number of eyes required by this device to view.
Declaration
public override int EyeCount { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
InputTracking
Gets the input tracking.
Declaration
public override XRInputTracking InputTracking { get; }
Property Value
Type | Description |
---|---|
XRInputTracking |
Overrides
Methods
EnterImmersive(string, string)
Enter into XR inmmersive mode.
Declaration
public Task EnterImmersive(string mode, string overlayId)
Parameters
Type | Name | Description |
---|---|---|
string | mode | The mode. Only AR supported. |
string | overlayId | Overlay layer id. |
Returns
Type | Description |
---|---|
Task | Task that initiates the immersive mode. |
ExitImmersive()
Exists the current immersive mode.
Declaration
public void ExitImmersive()
InternalUpdate()
Updates the XR device and all properties.
Declaration
protected override void InternalUpdate()