大约有 563 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0041 秒)
Laya_社区(159) Laya3.0_api(151) Laya2.0_api(106) laya_api(97) Laya2.0_文档(22) Laya3.0_文档(22) Laya2.0_示例(3) Laya_示例(3)
...oneTo(destObject:*):void[override] 克隆。 PBRStandardMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...
来源: Laya2.0_api 发布时间: 20190513
...d(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClo...
来源: Laya3.0_文档 发布时间: 20251010
...载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?: Handler): Sprite; 我们来看看代码示例: let sprite = new Laya.Sprite(); // 加载并显示一个图片,居中显示 sprite.loadImage("atlas/comp/image.png", null); sprite.pos(Laya.stage.width >...
来源: Laya3.0_文档 发布时间: 20251010