大约有 8 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
...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
...多边形 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
...机2D后,点击后打开 (图2-24) 2.7.2 3D动画状态机 如图2-25所示,创建动画状态机3D后,点击后打开 (图2-25) 动画状态机定义动画状态,以及动画状态之间的切换条件,来驱动对象播放不同的动画,表现出不同的行为。 具体如何...
来源: 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
...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
...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
...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
...er); // 创建网格 coneMesh.sharedMesh = Laya.PrimitiveMesh.createCone(0.25, 0.75); // 创建材质 let coneMaterial: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); coneRender.sharedMaterial = coneMaterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone);...
来源: Laya3.0_文档 发布时间: 20251010