Class XRQuadLayer
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXRQuadLayer interface of the WebXR Device API is a layer that takes up a flat rectangular space in the virtual environment. An XRQuadLayer has no thickness. It is a two-dimensional object positioned and oriented in 3D space. The position of a quad refers to the center of the quad. Only the front of the layer is visible.
[Value("XRQuadLayer")]
public class XRQuadLayer : XRCompositionLayer
- Inheritance
-
XRQuadLayer
- Inherited Members
Remarks
XRQuadLayer requires the layers feature to be enabled for the XRSession. You can request it in RequestSession(XRSessionMode, XRSessionInit).
To create a new XRQuadLayer, call either:
To present layers to the XR device, add them to the layers render state using UpdateRenderState(XRRenderStateInit).
-XRLayer
-EventTarget
-XRCompositionLayer
-XREquirectLayer
-XRCubeLayer
-XRCylinderLayer
-XRProjectionLayer
Constructors
XRQuadLayer()
public XRQuadLayer()
Properties
Height
NOTE
Experimentalheight property of the XRQuadLayer interface represents the height of the layer in meters.
[Value("height")]
public Number Height { get; set; }
Property Value
- Number
A number representing the height of the layer in meters.
Remarks
Onredraw
[Value("onredraw")]
public EventHandlerNonNull Onredraw { get; set; }
Property Value
Space
NOTE
Experimentalspace property of the XRQuadLayer interface represents the layer's spatial relationship with the user's physical environment.
[Value("space")]
public XRSpace Space { get; set; }
Property Value
Remarks
Transform
NOTE
Experimentaltransform property of the XRQuadLayer interface represents the offset and orientation relative to the layer's Space.
[Value("transform")]
public XRRigidTransform Transform { get; set; }
Property Value
Remarks
Width
NOTE
Experimentalwidth property of the XRQuadLayer interface represents the width of the layer in meters.
[Value("width")]
public Number Width { get; set; }
Property Value
- Number
A number representing the width of the layer in meters.