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

大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)

1. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

...end(buffer); } private onMessageReceived(message: any): void { if (message instanceof ArrayBuffer) { // 创建 DataView 来解析 ArrayBuffer const view = new DataView(message); try { // 解析数据 const num1 = view.getInt32(0, true); // 小端字节序 const num2 = view.getInt32(4, true); // 打...

来源: Laya3.0_文档 发布时间: 20251010

2. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

... < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一...

来源: Laya3.0_文档 发布时间: 20251010

3. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 74%]

... < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一...

来源: Laya3.0_文档 发布时间: 20250104

4. UI运行时 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...= 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(...

来源: Laya3.0_文档 发布时间: 20251010

5. 网络通信 · LayaAir3文档 · LAYABOX [ 37%]

... (typeof (message) == 'string') { console.log(message); } else if (message instanceof ArrayBuffer) { console.log(new Byte(message).readUTFBytes()); } // 清理缓存的服务端发来的数据 this.socket.input.clear(); } // 出现异常后的事件回调 private onConnectError(e: Event = null): voi...

来源: Laya3.0_文档 发布时间: 20250104

6. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 23%]

...k { onCreateNode(scene: IEditorEnv.IGameScene, node: Laya.Node) { if (node instanceof Laya.Sprite) node.anchorX = node.anchorY = 0.5; } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:57 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010