Table of Contents

Class XRQuadLayer

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRQuadLayer 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

See also on MDN

Constructors

XRQuadLayer()

public XRQuadLayer()

Properties

Height

NOTE
Experimental
The height 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

EventHandlerNonNull

Space

NOTE
Experimental
The space 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

XRSpace

An XRSpace.

Remarks

Transform

NOTE
Experimental
The transform 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

XRRigidTransform

An XRRigidTransform.

Remarks

Width

NOTE
Experimental
The width 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.

Remarks