大约有 12 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
...eMesh.createBox(0.5, 0.5, 0.5); //球体 Laya.PrimitiveMesh.createSphere(0.25, 20, 20); //圆柱体 Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); //胶囊体 Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); //圆锥体 Laya.PrimitiveMesh.createCone(0.25, 0.75); //平面 Laya.PrimitiveMesh.create...
来源: Laya3.0_文档 发布时间: 20251010
...2的N次幂 指数 2的N次幂 指数 2的N次幂 指数 2的N次幂 0 1 8 256 16 65536 24 16777216 1 2 9 512 17 131072 25 33554432 2 4 10 1024 18 262144 26 67108864 3 8 11 2048 19 524288 27 134217728 4 16 12 4096 20 1048576 28 268435456 5 32 13 8192 21 2097152 29 536870912 6 64 14 16384 22 4194304 ...
来源: Laya3.0_文档 发布时间: 20251010
...机2D后,点击后打开 (图2-24) 2.7.2 3D动画状态机 如图2-25所示,创建动画状态机3D后,点击后打开 (图2-25) 动画状态机定义动画状态,以及动画状态之间的切换条件,来驱动对象播放不同的动画,表现出不同的行为。 具体如何...
来源: Laya3.0_文档 发布时间: 20251010
...htByTime(progress: number): void { let intensity = 0; if (progress < 0.125) { intensity = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) { const t = (progress...
来源: Laya3.0_文档 发布时间: 20251010
...item1,item2,item3,item4,item5,item6,item7"; this.combobox.labelColors = "#32556b,#32cc6b,#ff0000"; this.combobox.itemHeight = 60; // itemColors格式:"悬停或被选中时背景颜色,悬停或被选中时标签颜色,标签颜色,边框颜色,背景颜色" this.combobox.itemColors = "#5e95b6,#ff...
来源: Laya3.0_文档 发布时间: 20251010
...aya.MeshFilter); sphereMesh.sharedMesh = Laya.PrimitiveMesh.createSphere(0.25, 20, 20); let sphereRender = sphere.addComponent(Laya.MeshRenderer); // 为球体添加像素线渲染精灵 let sphereLineSprite3D: Laya.PixelLineSprite3D = new Laya.PixelLineSprite3D(3500); this.scene.addChild(sphereLine...
来源: Laya3.0_文档 发布时间: 20251010
...nent.color = new Laya.Color(0.937, 1, 0); spotLightComponent.intensity = 1.25; spotLightComponent.innerRadius = 100; spotLightComponent.outerRadius = 500; spotLightComponent.innerAngle = 90; spotLightComponent.outerAngle = 120; // 开启阴影 spotLightComponent.shadowEnable = true; } // 创建背...
来源: Laya3.0_文档 发布时间: 20251010
...多边形 sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100, 75, 150, 25, 150], "#ffff00"); this.owner.addChild(sp); 代码运行效果如下图所示: (图4-4) 在修改的代码中,新增了D点坐标”75,150“与E点坐标”25,150“。通过将各个坐标点连接填充颜色...
来源: Laya3.0_文档 发布时间: 20251010
...2所示, (图6-2) 假如我们将屏幕水平位置起点X设置为0.25,屏幕垂直位置起点Y设置为0.25,宽度W设为0.5,高度H设为0.5,在LayaAir中效果如图6-3所示。 (图6-3) 6.2 深度贴图 Depth Texture Mode:深度贴图模式。 None:不生成深度贴图...
来源: Laya3.0_文档 发布时间: 20251010
...is.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建Http...
来源: Laya3.0_文档 发布时间: 20251010