供 babylon.scene.canvasBackgroundImage 使用:显示在场景后方的图像,以及控制其重复、缩放、位置和滚动方式的 CSS 选项。
babylon.scene.canvasBackgroundImage
Optional
显示在场景后方的图像的地址
undefined Copy
undefined
true
图像是否在画布上平铺,沿一个方向平铺或完全不平铺
noRepeat Copy
noRepeat
图像的缩放方式:cover 填满画布,contain 完整显示,或者 CSS 尺寸(如 100px 50px)
100px 50px
cover Copy
cover
图像在画布上的位置,例如中心或某个角,或者 CSS 位置(如 50% 50%)
50% 50%
center Copy
center
图像是随页面滚动还是固定在视口上
scroll Copy
scroll
图像相对于画布的哪个盒子定位:内边距、边框或内容盒
paddingBox Copy
paddingBox
图像裁剪到画布的哪个盒子:内边距、边框或内容盒
borderBox Copy
borderBox
Namespace: Bit › Inputs › BabylonScene
Other symbols in Inputs.BabylonScene:
API reference home · Full symbol index · Tutorials and guides · Platform
供
babylon.scene.canvasBackgroundImage使用:显示在场景后方的图像,以及控制其重复、缩放、位置和滚动方式的 CSS 选项。