files/en-us/web/api/xrcylinderlayer/index.md
{{securecontext_header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}}
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.
XRCylinderLayer requires the layers feature to be enabled for the {{domxref("XRSession")}}. You can request it in {{domxref("XRSystem.requestSession()")}}.
To create a new XRCylinderLayer, call either:
To present layers to the XR device, add them to the layers render state using {{domxref("XRSession.updateRenderState()")}}.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("XRCompositionLayer")}}.
radius with the centralAngle.space.Inherits methods from its parents, {{domxref("XRCompositionLayer")}} and {{domxref("EventTarget")}}.
XRCylinderLayer object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame.{{Specifications}}
{{Compat}}