Class XRCylinderLayer
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXRCylinderLayer 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
Constructors
XRCylinderLayer()
public XRCylinderLayer()
Properties
AspectRatio
NOTE
ExperimentalaspectRatio 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
ExperimentalcentralAngle 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
-AspectRatio
-Radius
-MathPI
Onredraw
[Value("onredraw")]
public EventHandlerNonNull Onredraw { get; set; }
Property Value
Radius
NOTE
Experimentalradius 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
-AspectRatio
-CentralAngle
-MathPI
Space
NOTE
Experimentalspace 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
Remarks
Transform
NOTE
Experimentaltransform property of the XRCylinderLayer interface represents the offset and orientation relative to the layer's Space.
[Value("transform")]
public XRRigidTransform Transform { get; set; }