大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...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
... < 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
... < 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
...= 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
... (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
...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