大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...戏导入的JS文件怎么访问 laya这边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论...
来源: Laya_社区 发布时间: 20180428
...SyntaxError: Unexpected token in JSON at position 27 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0.1:9973/game/code.js:20980:15) at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:9973/game/code.js:21386:25) at Handler.__proto.run...
来源: Laya_社区 发布时间: 20180205
...到的问题。 Cannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property 'window' of object '#<Window>' 附件 : --> 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20181107
...***121:嗯 是会有精度问题 我把_updateCollisions里面的distance <= 0 改成 <= 0.1 跑60帧正常 但是物理精度感觉不够 所以跑了120 但是120就遇到碰撞不回调和不反弹的问题 如果你也听说 • 2021-01-26 15:54 @184*****121:wasm不支持各个平台的小...
来源: Laya_社区 发布时间: 20210106
使用js压缩工具报错 提示undifined 附件 : --> LayaDefault.max_.zip 2018-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 描述一下问题,不要直接发demo,正常跑...
来源: Laya_社区 发布时间: 20180806
...效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTex...
来源: Laya_社区 发布时间: 20181113
....parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFromString(value,'text/xml'); if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){ throw new Error(rst.firstChild.firstChild.textContent); } r...
来源: Laya_社区 发布时间: 20180103
...e.toString().split(''); for (var i:int = 0; i < splitArr.length; i++) { var te:Texture = _sources[splitArr[i]] as Texture; if (_align != "right") { this.grap...
来源: Laya_社区 发布时间: 20170601
...ist; //遍历所有元素,根据zOrder排序 if (!array || array.length < 2)return false; var i=1,j=0,len=array.length,key=NaN,c; while (i < len){ j=i; c=array[j]; key=array[j]._zOrder; while (--j >-1){ if (array[j]._zOrder > key)array[j+1]=array[j]; else break ; } array[j+1]=c; i++; }...
来源: Laya_社区 发布时间: 20180412
...dex,minIndex-1))&& (minIndex > 0)){ minIndex--; } if (minIndex < this._clipIndex){ for (i=minIndex;i < this._clipIndex;i++){ this._createGraphics(i); } } tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex); } if (tGraphics && this.graphics ...
来源: Laya_社区 发布时间: 20200109