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

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

1101. Cannot read property 'offCanplay' of null [ 53%]

...断。 onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); if(this._sound){ this._sound.offCanplay(null); } }有遇到一样问题的哥们吗? 2020-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...

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

1102. 关于屏幕适配问题,实在不知道怎么回事 [ 53%]

...下:   //根据IDE设置初始化引擎                 if (window["Laya3D"]){             Laya3D.init(720, 1280);         }         else{          Laya.init(720, 1280, Laya["WebGL"]);         }         Laya["Physics"] && ...

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

1103. 多scene3d报内存不足问题 [ 52%]

... 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 "). Build with -s ASSERTIONS=1 for more info.   代码: this.m_scene = Laya.loader.getRes(this.getScenePath()); new Laya.Scen...

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

1104. 设置背景透明,在电脑上没有问题,但是在手机上(如微信qq浏览器)是无效的 [ 52%]

...2018-05-19 14:58 浏览: 1317 关注: 3 人 夏^O^雨 • 2018-05-19 15:02 if (Laya.Render.isWebGL) { Config.isAlpha = true;//设置画布是否透明,只对2D(WebGL)、3D有效。 Laya.init(GameConfig.DeviceW, GameConfig.DeviceH, Laya.WebGL); Laya.stage.bgColor = "none";//背景透明 }...

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

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

....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(_channel); // TODO 是否需要? 去掉有什么好处? 是否还需要其他...

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

1106. 怎么知道是调试版还是发布版 [ 52%]

...是日志输出等级。 Laya_Aaron • 2017-12-22 15:12 我的意思是,if(window.conch) 里面的代码调试的时候才能在 layaPlayer环境下执行,发布的时候走不进来 liuliqianxiao • 2017-12-22 16:34 @Laya_Aaron:我是想ide断点调试的时候。并不是想通过LayaPla...

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

1107. 物理引擎box2d 物体碰撞时销毁解决方案 [ 52%]

...e, 物体即更改为穿透模式 var rgbody = this.rigidbody.getBody(); if (rgbody.m_fixtureList) rgbody.m_fixtureList.m_isSensor = true;   2.设置sprite的宽度和高度为0,然后间隔一段时间再删除。 2019-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1108. 释放资源报错 [ 52%]

...shSprite3D.__proto.destroy (laya.d3.js:43737)   发现           if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform...

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

1109. Array buffer allocation failed [ 52%]

...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 微信 Titan 赞同来自: 我也遇到这问题了...

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

1110. 保存数据的数组在回调的时候变为undifine [ 52%]

保存数据的数组在回调的时候变为undifine 面板里面保存了所有显示对象,每个显示对象都有点击事件,点击的时候调用面板里面的回调函数,回调函数中用到面板保存数据的数组。这时候回调的时候面板中保存数据的数组变为un...

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