大约有 34 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
..."Bullet"); // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 */ static clearBySign(sig...
来源: Laya3.0_文档 发布时间: 20251010
...的真实坐标 */ private getRealPosition(start, path): any { this.resPathLength = path.length; var minX = this.terrainSprite.minX; var minZ = this.terrainSprite.minZ; var cellX = this.terrainSprite.width / this.aStarMap.width; var cellZ = this.terrainSprite.depth / this.aStarMap.height; var halfCe...
来源: Laya3.0_文档 发布时间: 20230303
...个圆型扇出 Angle DEG:形状的圆形方面的角度 Radius:半径 Length:长度 Emit from:发射方式 Base:基于锥形底部 Base Shell:基于锥形底部壳 Volume:基于锥形内部 Volume Shell:基于锥形内部壳 Randomize Direction:随机化方向 (动图9)展示...
来源: Laya3.0_文档 发布时间: 20251010
...个圆型扇出 Angle DEG:形状的圆形方面的角度 Radius:半径 Length:长度 Emit from:发射方式 Base:基于锥形底部 Base Shell:基于锥形底部壳 Volume:基于锥形内部 Volume Shell:基于锥形内部壳 Randomize Direction:随机化方向 (动图9)展示...
来源: Laya3.0_文档 发布时间: 20250104
... = 0; //每秒重画一次 Laya.timer.loop(1000, this, () => { i == res.length && (i = 0); //清除sp节点的所有绘图(不含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2.2 可带类型的多资源加载方式 假...
来源: Laya3.0_文档 发布时间: 20251010
...2DByPrimitive([vertexs], [declaration], index, Laya.IndexFormat.UInt16, [{ length: index.length, start: 0 }]); return mesh2D; } } 最终的效果如图3-1所示, (图3-1) 示例中给出的是一个圆形的网格,下面再给出一个矩形网格的写法, /** * 生成一个矩形2D网格...
来源: Laya3.0_文档 发布时间: 20251120
...onstrate <output.writeByte>"; for (var i: number = 0; i < message.length; ++i) { // 直接写缓冲区中的数据 this.output.writeByte(message.charCodeAt(i)); } // 发送缓冲区中的数据到服务器 this.socket.flush(); } // 连接断开后的事件回调 private onSocketClose(e: any...
来源: Laya3.0_文档 发布时间: 20250104
...nst floatKeyframe: Laya.FloatKeyframe[] = []; for (let i = 0; i < value.length; i++) { //创建一个新的关键帧 let keyframe = new Laya.FloatKeyframe(); //设置关键帧的各项属性 keyframe.inTangent = value[i].inTangent; keyframe.outTangent = value[i].outTangent; keyframe.value = value...
来源: Laya3.0_文档 发布时间: 20251010
...yPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start: 0 }]); return mesh2D; } } 最终的效果如图3-1所示, (图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:56 img{cursor:poi...
来源: Laya3.0_文档 发布时间: 20251010
...hedModle) 启用此属性后,线段会变为虚线。 虚线长度(dashedLength) 启用虚线模式后可以设置的属性,此属性决定了虚线每一个循环的长度。 虚线间隔的百分比(dashedPercent) 虚线中非空白区域占线段长度的百分比。 虚线偏移量(dashedOff...
来源: Laya3.0_文档 发布时间: 20251010