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

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

121. Panel 的 滑动问题 [ 73%]

...    setData:function() { // 添加一批 for (var i = 0; i < elemArr.length; i++) {     var rdata = elemArr[i];   var cell = this._putChild("panelParent", path, rdata.showCol, rdata.showRow, cellSize, [1, 1], 0); }   this.timerOnce(300, this, function () { this._scrollToOne("panelParent")...

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

122. 代码2.0.2版本Laya.Animator发现play方法的存在BUG [ 72%]

...ted function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlayState == null) { var defaultClip = this.ge...

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

123. matter 2d 碰撞检测 [ 72%]

...);   private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(pair.bodyA.label === 'gun' && pair.bodyB.label == "gameover") { this.onGameOver(); }  } }   private onGameOver(): void { console.log("结束游戏...");} 附件 : -->...

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

124. IOS Native工程,apploader.js报错 [ 72%]

...ch_id; _.needsz(16); _.wu32(0); _.wu32(11); _.wu32(ib.conch_id); _.wu32(ib.length * 2); ib.buffer = new Uint16Array(ib); _.wab(ib.buffer, ib.length * 2); ib._upload = true; } if (vb.conch_id === undefined || !vb._upload) { vb.conch_id = CanvasRenderingContext2D.ID++; vb.conchRef = new ArrayBufferRef...

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

125. TimeLine调用destroy报错&执行完成后回到起点 [ 72%]

...  报错信息: .max.js:12479 Uncaught TypeError: Cannot read property 'length' of null at TimeLine.__proto._update (HMain.max.js:12479) at TimerHandler.__proto.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop...

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

126. 发射射线检测不到,物体有包围盒 [ 72%]

... console.log("1111111111",this.hitResult);          // if (this.outs.length != 0)         // {          //  console.log("碰撞到物体",this,this.outs[0]);         // }                     } 附件 : --> 2022-05-06 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

127. Laya3d如何优化DrawCall,提高渲染性能? [ 72%]

...wner){   this._quickSort(this._initBatchSprites,0,this._initBatchSprites.length-1);  …… } 这个函数的第一行的这个排序有问题,把它注释掉就可以把drawcall降成1。 感觉上并木有什么优化效果 2018-12-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

128. 颜色滤镜 差值变化 [ 72%]

... persent); if (this.targets != null) { for (let i = 0; i < this.targets.length; i++) { if (this.targets[i] != null) { this.targets[i].filters = [newTargetColorFilter]; } } } }  public setPersent(persent: number) { this._persent = persent; }  public get persent(): number { return this._persent; ...

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

129. skeleton的_onAniSoundStoped清除的时候有时会报undefined错误 [ 72%]

...niSoundStoped(force: boolean): void { for (let len = this._soundChannelArr.length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (channel.isStopped || force) { !channel.isStopped && channel.stop(); this._soundChannelArr.splice(i, 1); // SoundManager.removeChannel(_chan...

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

130. 关于socket处理消息的问题 [ 72%]

...e()); msg.encode(byte); this._socket.send(byte.__getBuffer().slice(0, byte.length); //this._socket.send(byte.__getBuffer()); -->>这两处地方使用slice和不使用, 服务器收到的数据长度是不一样的,求解 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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