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

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

541. 2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null [ 48%]

...属性,报错位置在WebGLContext.__init__ ();中 断点发现 在类Render 的 initRender 方法中 getWebGLContext 总返回null;   附件已上传 附件 : --> wxgame.zip 2022-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

542. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 48%]

...太麻烦了,我直接找到LayaAirIDE\resources\app\out\vs\layaEditor\renders\editorui2.0这个文件,把__class(HtmlText,'laya.editorUI.HtmlText');这句话改成__class(HtmlText,'laya.editorUI.HtmlText',_super);就没问题了

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

543. layaAir1.7.16beta版本cavans下spine骨骼动画显示异常,layaAir1.7.14beta还是好的 [ 48%]

...出问题了,问题代码是BoneSlot.as的 if (currTexture && !Render.isConchApp && currDisplayData.type == 0 && currDisplayData.uvs)                     {                         currTexture = currDisplayData.createTexture(currTexture);  ...

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

544. 如何加载一个HTML页面 [ 48%]

...t column 7: internal error: detected an error in element contentBelow is a rendering of the page up to the first error." (function() { var Stage = Laya.Stage; var Text  = Laya.Text; var WebGL = Laya.WebGL; (function() {   // 不支持WebGL时自动切换至Canvas   Laya.init(200, 300, WebGL);   ...

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

545. 添加极光推送后,切回后台点击推送过来的消息,出现黑屏闪退是什么原因?内文有LOG,请帮忙查看一下哪出错了。 [ 48%]

...background! 05-17 17:12:40.307 13946-13946/com.wesai.doudizhu I/LayaBox: ==render will exit 05-17 17:12:40.307 13946-14056/com.wesai.doudizhu I/LayaBox: js thread exiting... 05-17 17:12:40.307 13946-14056/com.wesai.doudizhu I/LayaBox: release JSWebSocket this=ab911fa0 deletgate=ab914318 05-17 17:12:...

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

546. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 48%]

...verWebAudio(); url=URL.formatURL(url); if (url!=SoundManager._tMusic){ if (Render.isConchApp){ var ext=Utils.getFileExtension(url); if (ext !="wav" && ext !="ogg"){ alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document."...

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

547. 分享:如何将舞台的背景颜色设置为透明(WebGL和Canvas下) [ 48%]

...断当前渲染模式是WebGL还是Canvas? 引擎初始化之后判断 Render.isWebGL 是true还是false。true:WebGL模式,false:Canvas模式。   WebGL下设置背景透明代码://设置画布是否透明,只对2D(WebGL)、3D有效 Config.isAlpha = true; //初始化引擎 Laya.init(8...

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

548. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 48%]

...,附件为我的demo,请帮忙看看 if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTexture=this.currDisplayData.createTexture(this.currTexture); } 跟代码发现this.currDisplayData.uvs是null这是为什么...

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

549. TypeError: Cannot read property '_byteLength' of null [ 47%]

...//F:/client_svn/h5/bin/libs/laya.webgl.js:4963:32) at SubmitCanvas.__proto.renderSubmit (file:///F:/client_svn/h5/bin/libs/laya.webgl.js:6294:18) at WebGLContext2D.__proto.submitElement (file:///F:/client_svn/h5/bin/libs/laya.webgl.js:4954:30) at WebGLContext2D.__proto.flush (file:///F:/client_svn/h...

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

550. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 47%]

...middle"; Laya.stage.scaleMode = "fixedwidth"; console.log("iswebgl:", Laya.Render.isWebGL); }  public Load() { Laya.loader.load(NewTest.url, null, null, null, 0, true); }  public Unload() { Laya.loader.clearRes(NewTest.url); } }  window["test"] = new NewTest(); window["test"].Load(); Laya.timer.o...

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