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

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

1141. 模型反复调用setSlotSkin,在Runtime版本下会造成内存泄漏的问题 [ 51%]

...可以自己手工测试一下,在调用 setSlotSkin后,强行增加 if(window.conch)gc(); 这样就没有问题了。。gc的意思是强行调用JS的垃圾回收,但是一般不建议这样使用。 ----------------------------- 不过针对这个问题,我们引擎内部做了优化,...

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

1142. [LayaAir3]打包webgl包,如何设置在手机上打开时,把手机变成横屏 [ 51%]

...是设置横屏    const isMobile = Laya.Browser.onMobile;          if (isMobile) {             // 移动设备使用固定宽高比适配             Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;             Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL;       ...

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

1143. 【laya2.0】请问drawToCanvas方法改了吗? [ 51%]

...; htmlCanvas.toBase64("image/png", 0.9, function(base64){ //trace(base64); if (!testTf){ __JS__('setWork(base64)'); } }); 2018-10-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 相关问题 两个对象new了一...

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

1144. Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? [ 51%]

...    var index:int = _clipNames.indexOf(playName);             if (index !== -1) {                 return _clips[index];             } else {                 return null;             }         }                  /**        ...

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

1145. Uncaught RangeError:Array buffer allocation failed [ 51%]

...MB. Browsers currently don't support allocating anything larger than that. If you are running on a 32-bit browser, a HEAP size of 512MB or 768MB is about the maximum that is possible.   参照一下ue4 的回答 2019-09-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

1146. 修复图片加载跨域问题 [ 51%]

...e.crossOrigin=""; line:17497  //this._source.crossOrigin=""; line:17480  if (src.indexOf("data:image")!=0)this._source.crossOrigin=""; 仅供参考,没有详细研究,不知道会不会引发其他bug,希望对大家有帮助   2017-02-04 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1147. 安卓微端弹出 LayaH5Market.js 的报错,应该怎么处理? [ 51%]

...=201606151103:396: TypeError: Cannot read property 'indexOf' of undefined if (location.search != "" || location.hash.indexOf('?') > -1){//获取游戏启动地址的...     请问该如何处理呢? 附件 : --> 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1148. HTMLDivElement下划线换行时,下划线颜色错误 [ 51%]

...astWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords.y,lastWords.x+lastWords.width-startWord.x,lastWords.heigh...

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

1149. LayaIDE 2.3.0beta创建模型过多导致内存溢出 [ 51%]

... set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ") 附件 : --> laya-hammer.zip 2019-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1150. 是我判断语句写错吗?怎么一直执行第一个条件 [ 51%]

... Todo 赞同来自: ......... 2017-01-12 0 0 分享 微博 QZONE 微信 jifm 赞同来自: 两个等号,你这是赋值 2017-01-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Todo 相关问题 两个对象new了一个相同的对象...

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