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

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

21. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 84%]

...n ;         }          ws.onopen = function() {             console.log("---open----");             //设置发信息送类型为:ArrayBuffer             ws.binaryType = "string";             if(SocketJS.OnOpenMsg!=null)SocketJS.OnOpenMsg();         }       ...

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

22. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 83%]

...一个测试代码,压根就没功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("re...

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

23. Layabox web 复制一段文字到剪贴板 [ 82%]

...t: function () { return str; } })  clipboard.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.on("error", function (e) { console.log("err:") console.log(e) clipboard.destroy(); })  //确认按钮 this.confirmBtn.onclick = function () { _this.CloseDiv...

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

24. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 82%]

...ish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded()...

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

25. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 80%]

...wake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用。如果没重置,则不进行回收复用 onReset(...

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

26. websocket服务端显示连接成功,客户端未进行回调 [ 79%]

...p udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 ...

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

27. 从对象池里取出的对象设置坐标失败 [ 79%]

...????底层对象池没做好? v.pos(nextPost.x, nextPost.y) console.log(nextPost, v.x, v.y) console.log(v)   附件 : --> 2018-05-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Nothing 赞同来...

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

28. 预加载结束之后还是报lose skin [ 79%]

...is.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: ...

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

29. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 79%]

...ate onAssetLoaded(): void     {         // 使用texture         console.log("加载结束");     }      // 加载进度侦听器     private onLoading(progress: number): void     {         console.log("加载进度: " + progress);     }      private onError(err: string):...

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

30. 在线急等,发现你们这个编译器一个bug,不能实现负负得正 [ 78%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.st...

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