• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 585 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0051 秒)

201. 网络通信 · LayaAir3.0文档 · LAYABOX [ 68%]

...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_文档 发布时间: 20241014

202. laya.d3.math.native.ConchVector4_API3.0 [ 67%]

...W UnitX UnitY UnitZ ZERO Accessors w x y z Methods clone cloneTo fromArray length lengthSquared Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new ConchVector4(x?: number, y?: number, z?: number, w?: number): Conc...

来源: Laya3.0_api 发布时间: 20231102

203. laya.d3.math.Quaternion_API3.0 [ 67%]

... cloneTo equals forNativeElement fromArray getYawPitchRoll identity invert length lengthSquared normalize rotateX rotateY rotateZ scaling set setValue add createFromAxisAngle createFromMatrix4x4 createFromYawPitchRoll dot forwardLookAt invert lerp lookAt multiply rotationLookAt rotationMatrix slerp ...

来源: Laya3.0_api 发布时间: 20231102

204. Sprite-新手引导 [ 67%]

...iner); nextStep(); })(); function nextStep() { if (guideStep == guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); } else { var step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); int...

来源: Laya_示例 发布时间: 20241125

205. 内存释放问题 [ 67%]

...id { let uiResArray = []; let muduleName; for (let index = 0, len = mNames.length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArra...

来源: Laya_社区 发布时间: 20170905

206. LayaAir 寻路库,寻路路径错误 [ 67%]

...d(arr, 3); var path:Array = astart1.findPath(0, 0, 3, 2, grid); trace(path.length + "_____" + path.toString()); var path1:Array = astart1.findPath(0, 0, 3, 2, grid); trace(path1.length + "_____" + path1.toString()); -------------------------------------输出---------------------...

来源: Laya_社区 发布时间: 20161221

207. Sprite-新手引导 [ 67%]

...ipContainer); this.nextStep(); } nextStep() { if (guideStep === guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); in...

来源: Laya2.0_示例 发布时间: 20241125

208. UI-Input [ 67%]

... } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private createInput(skin: string):...

来源: Laya_示例 发布时间: 20241125

209. 看下这个问题是不是Bug [ 66%]

...r); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.length; i &lt; n; i++) { let comp = arr[i]; comp.owner &amp;&amp; comp._setActive(active); } arr.length = 0; } 无名玩家X • 2023-10-10 20:22 呃...也不用反复强调你们没问题... 感谢大佬科普,但是&quot;on...

来源: Laya_社区 发布时间: 20231007

210. 分享一个Shader版的CoolDown实现 [ 66%]

...uv_info.zw - vec2(0.5,0.5))*256.0;\                 float radius = length(pos.xy);\                 float angle = -degrees(atan(pos.x, pos.y)) + 180.0;\                 float fa = radians(angle - progress * 360.0) * radius + 1.0;\                 fa = clamp(fa, 0.0, 1...

来源: Laya_社区 发布时间: 20170606