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

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

301. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 22%]

...; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(img); } else { console.log("收到数据:", message); } } private onConnectError(): void { console.log("Connection Error"); } } 运行效果如图3-1所示。 (图3-1) 3.3 基于Laya.Byte二进制通信 3.3.1 TypedAr...

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

302. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 20%]

... new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true...

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