Table of Contents

Class XRCubeLayer

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRCubeLayer interface of the WebXR Device API is a layer that renders directly from a cubemap and projects it onto the inside faces of a cube.
[Value("XRCubeLayer")]
public class XRCubeLayer : XRCompositionLayer
Inheritance
XRCubeLayer
Inherited Members

Remarks

XRCubeLayer requires the layers feature to be enabled for the XRSession. You can request it in RequestSession(XRSessionMode, XRSessionInit).

To create a new XRCubeLayer, call CreateCubeLayer(XRCubeLayerInit).

To present layers to the XR device, add them to the layers render state using UpdateRenderState(XRRenderStateInit).

-XRLayer
-EventTarget
-XRCompositionLayer
-XREquirectLayer
-XRQuadLayer
-XRCylinderLayer
-XRProjectionLayer

See also on MDN

Constructors

XRCubeLayer()

public XRCubeLayer()

Properties

Onredraw

[Value("onredraw")]
public EventHandlerNonNull Onredraw { get; set; }

Property Value

EventHandlerNonNull

Orientation

NOTE
Experimental
The orientation property of the XRCubeLayer interface represents the orientation relative to the space property.
[Value("orientation")]
public DOMPointReadOnly Orientation { get; set; }

Property Value

DOMPointReadOnly

A DOMPointReadOnly.

Remarks

Space

NOTE
Experimental
The space property of the XRCubeLayer interface represents the layer's spatial relationship with the user's physical environment.
[Value("space")]
public XRSpace Space { get; set; }

Property Value

XRSpace

An XRSpace.

Remarks