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

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

131. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 76%]

...ou are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instea...

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

132. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 76%]

...t.disableVertexAttribArray(index); attrs[index] = null; } }); while (attrs.length > 0 && attrs[attrs.length - 1] == null) attrs.pop(); } }; let $bufferRecreateResource = Laya.Buffer.prototype['recreateResource']; Laya.Buffer.prototype['recreateResource'] = function() { $bufferRecreateReso...

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

133. Laya.Handler.create 回调 [ 76%]

...1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

134. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 76%]

...this._getCSSStyle()._getValign() == 1){ for(var i = 0; i < this._childs.length; i++){ var e = this._childs[i]; if(e instanceof HTMLElement && e._text.words){ for(var j = 0; j < e._text.words.length; j++){ var w = e._text.words[j]; w.y = (this.height - tArray[1])/2 + w.y; } }else{ e.y =...

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

135. 2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发 [ 75%]

..._simulate(deltaTime)函数的  this._btDiscreteDynamicsWorld.callBackBody.length = 0;                 this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

136. 缓动-逐字缓动 [ 75%]

...ght / 2 - 50; let demoString = "LayaBox"; for (let i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:Strin...

来源: Laya2.0_示例 发布时间: 20251209

137. List组件 repeat(x/y)设置问题 [ 75%]

......         var repeatY = Math.ceil(GameManager.instance.serverList.length / 3); // 此处算出来实际为1         this.serverList.repeatY = repeatY; ...... 但是直接设,是可以的:   // this.serverList.repeatY = 1; 2016-09-02 添加评论 免费帖 --> 分享 微博 QZONE...

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

138. TS2D基础篇-图集动画运用 问题 [ 75%]

...f (!aniData)return; var aniList=aniData.animationList; var i=0,len=aniList.length; --------源码--------- 报错: aniList.length为null "Cannot read property 'length' of null" 2018-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

139. laya绘制图形进行缩放的时候有问题 [ 75%]

... this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <= 1.5) { this.scaleX += 0.1; this.scaleY += 0.1; for (var i = 0; i < this.nodes.length; i++) {...

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

140. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 75%]

...charge")//充值         ]         for(var i = 0;i<this.feedBtn.length;i++){                 new BtnFeed(this.feedBtn[i]);           }     } //又给this.myHome对象添加了一个click事件  this.myHome.on(Laya.Event.CLICK,this,this.showMyfamMenu);   _proto.showMyfamM...

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