Class XRCubeLayer
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXRCubeLayer 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
Constructors
XRCubeLayer()
public XRCubeLayer()
Properties
Onredraw
[Value("onredraw")]
public EventHandlerNonNull Onredraw { get; set; }
Property Value
Orientation
NOTE
Experimentalorientation property of the XRCubeLayer interface represents the orientation relative to the space property.
[Value("orientation")]
public DOMPointReadOnly Orientation { get; set; }
Property Value
Remarks
Space
NOTE
Experimentalspace property of the XRCubeLayer interface represents the layer's spatial relationship with the user's physical environment.
[Value("space")]
public XRSpace Space { get; set; }