Table of Contents

Class XRCylinderLayer

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRCylinderLayer interface of the WebXR Device API is a layer that takes up a curved rectangular space in the virtual environment. Only the front of the layer is visible.
[Value("XRCylinderLayer")]
public class XRCylinderLayer : XRCompositionLayer
Inheritance
XRCylinderLayer
Inherited Members

Remarks

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

To create a new XRCylinderLayer, call either:

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

-XRLayer
-EventTarget
-XRCompositionLayer
-XREquirectLayer
-XRCubeLayer
-XRQuadLayer
-XRProjectionLayer

See also on MDN

Constructors

XRCylinderLayer()

public XRCylinderLayer()

Properties

AspectRatio

NOTE
Experimental
The aspectRatio property of the XRCylinderLayer interface represents the ratio of the visible cylinder section. It is the ratio of the width of the visible section of the cylinder divided by its height. The width is calculated by multiplying the Radius with the CentralAngle.
[Value("aspectRatio")]
public Number AspectRatio { get; set; }

Property Value

Number

A number representing the ratio of the visible cylinder section.

Remarks

CentralAngle

NOTE
Experimental
The centralAngle property of the XRCylinderLayer interface represents the angle in radians of the visible section of the cylinder.
[Value("centralAngle")]
public Number CentralAngle { get; set; }

Property Value

Number

A number representing the angle in radians of the visible section of the cylinder.

Remarks

Onredraw

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

Property Value

EventHandlerNonNull

Radius

NOTE
Experimental
The radius property of the XRCylinderLayer interface represents the radius of the cylinder.
[Value("radius")]
public Number Radius { get; set; }

Property Value

Number

A number representing the radius of the cylinder.

Remarks

Space

NOTE
Experimental
The space property of the XRCylinderLayer 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 XRCylinderLayer 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