Class WebXRWindowsSystem
WebXR windows system.
Implements
Inherited Members
Namespace: Evergine.WebXR
Assembly: Evergine.WebXR.dll
Syntax
public class WebXRWindowsSystem : WebWindowsSystem, IGetNativePointers
Constructors
WebXRWindowsSystem(GraphicsBackend)
Initializes a new instance of the WebXRWindowsSystem class.
Declaration
public WebXRWindowsSystem(GraphicsBackend graphicsBackend = GraphicsBackend.WebGL2)
Parameters
Type | Name | Description |
---|---|---|
GraphicsBackend | graphicsBackend | WebGL backend. Only WebGL2 supported. |
Methods
CreateLoopThread(Action, Action)
Creates a looping thread.
Declaration
protected override void CreateLoopThread(Action loadAction, Action renderCallback)
Parameters
Type | Name | Description |
---|---|---|
Action | loadAction | The loading action. |
Action | renderCallback | The rendering callback action. |
Overrides
EnterImmersive(string, string, string)
Enter into XR inmmersive mode.
Declaration
public Task EnterImmersive(string immersiveMode, string canvas, string overlayId)
Parameters
Type | Name | Description |
---|---|---|
string | immersiveMode | The mode. Only AR supported. |
string | canvas | Canvas id. |
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()