XRCylinderLayer: space property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Thuộc tính space của giao diện XRCylinderLayer đại diện cho mối quan hệ không gian của lớp với môi trường vật lý của người dùng.
Giá trị
Một XRSpace.
Ví dụ
>Cập nhật không gian của lớp hình trụ
Phương thức XRWebGLBinding.createCylinderLayer() tạo lớp hình trụ và yêu cầu cung cấp thuộc tính space. Thuộc tính XRCylinderLayer.space có thể được dùng sau khi tạo lớp để lấy không gian được dùng hoặc đặt thành không gian mới.
js
const cylinderLayer = xrGlBinding.createCylinderLayer({
space: xrReferenceSpace,
viewPixelWidth: 512,
viewPixelHeight: 512,
});
cylinderLayer.space = someOtherSpace;
Thông số kỹ thuật
| Specification |
|---|
| WebXR Layers API Level 1> # dom-xrcylinderlayer-space> |