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

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

31. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 90%]

...his.isFinish){ return null; } let armature = null; if(this.mArmatureUnUsed.length > 0){ armature = this.mArmatureUnUsed.pop(); } if(this.mFactory){ armature = this.mFactory.buildArmature(0); this.mArmatureUsed.push(armature); return armature; } }  public recycleArmature(armature:Laya.Skeleton){ ...

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

32. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 89%]

...竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 182*****369 赞同来自: cuixueying 已解决,当destroy函数调...

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

33. mac 下翻译出来的顺序问题 [ 89%]

...is._dataObj[this._valueName]=this._value; SaveBase._cache[SaveBase._cache._length++]=this; this._newSubmit && (context._curSubmit=Submit.RENDERBASE,context._renderKey=0); } SaveBase._createArray=function(){ var value=; value._length=0; return value; } SaveBase._init=function(){ var namemap=S...

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

34. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 89%]

...var j = 0; j < this.aaa.playerNameList[this.turnNumber].playerhandpoker.length; j++) { for (var k = 0; k < this.outHandPoker.length; k++) { if (this.outHandPoker[k] == this.aaa.playerNameList[this.turnNumber].playerhandpoker[j]) { this.aaa.playerNameList[this.turnNumber].playerhandpoker.splice...

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

35. Protobuf decode报错 [ 89%]

...obuf decode报错 使用protobuff 连接socket , socket约定的格式:length(整形),消息号(整形) ,消息体(buffer)   1.发送给服务器正常,也可以接受到服务区的消息     //已经加载完了.proto文件 var awesomMsg:any=root.lookup("com.lll.game.login...

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

36. Shader预编译解决方案 [ 89%]

...();                 for (var i = 0, n = defineNames.length; i < n; i++)                     //将宏定义名称转换为  Laya.DefineDatas                     compileDefineDatas.add(Shader3D.getDefineByName(defineNames));   ...

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

37. getCharPoint的bug [ 89%]

...re.js的getCharPoint这个函数里,有这样一句话:len += lines[i].length;   请将其改成:len += lines[i].length + 1;   显然开发者没在多行的情况下测试这个函数,换行这种事肯定是末尾有个换行符才会换的嘛!   上面的length没考虑换行符,...

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

38. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 89%]

...) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如...

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

39. 性能测试-骨骼 [ 88%]

...0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.height / this.rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); this.mT...

来源: Laya_示例 发布时间: 20251130

40. 性能测试-骨骼 [ 88%]

...0; i = tAnimNum) { mActionIndex = 0; } for (let i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.height / this.rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); this.mT...

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