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

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

1. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 100%]

.../Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { console....

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

2. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 94%]

...at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded ...

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

3. 加载成功要怎样判断呢? [ 91%]

加载成功要怎样判断呢? 不管是Laya.loader.load(url, onLoaded, ...) 还是Laya.loader.on(Event.COMPLETE, this, onLoaded); 加载失败都会到onLoaded,那怎么区分是不是加载成功? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

4. Laya.loader加载BUG [ 90%]

...的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){         (cache===void 0)&& (cache=true);         (ignoreCache===void 0)&& (ignoreCache=false);  ...

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

5. 如何把加载好的二进制数据转成Texture? [ 89%]

..." }; var blobFragment = []; function loadBytes(fragment: ArrayBuffer, onload: any = null): Laya.HTMLImage { var blob; try { blobFragment[0] = fragment; blob = new Blob(blobFragment, blobType); } catch (e) { var win: any = window; win.BlobBuilder = win.BlobBuilder || win.WebKitBlobBuilder || win...

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

6. js飞机大战报错 请大神看看 [ 88%]

...:/Users/Kevin/Desktop/test/AirWar/AirWar09/src/GameInfo.js:12:22)     at onLoaded (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/src/Game.js:44:25)     at EventHandler.__proto.runWith (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/bin/libs/laya.core.js:688:60)     at ResInfo.__prot...

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

7. 安卓app加载场景错误 [ 88%]

..._proto.onAsynLoaded (http://192.167.0.100/h5/layawe ... 6857:8) at ResInfo.onLoaded (http://192.167.0.100/h5/layawe ... 134:61) at EventHandler.__proto.runWith (http://192.167.0.100/h5/layawe ... 716:59) at ResInfo.__proto.event (http://192.167.0.100/h5/layawe ... 490:28) at LoaderManager.__proto._e...

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

8. Uncaught TypeError: Cannot read property 'props' of undefined [ 86%]

...  at Loader.__proto.complete (laya.core.js:14555)     at Loader.__proto.onLoaded (laya.core.js:14523)     at EventHandler.__proto.runWith (laya.core.js:1155)     at HttpRequest.__proto.event (laya.core.js:911)     at HttpRequest.__proto.complete (laya.core.js:14196)     at HttpRequest.__p...

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

9. 加载.lh文件报错 [ 81%]

....js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (laya.core.js:14933) at EventHandler.__proto.runWith (laya.core.js:1125) at HttpRequest.__proto.event (laya.core.js:882) at HttpRequest.__proto.complete (laya.core.js:14607) at HttpRequest.__proto._onLoad (laya.core....

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

10. 关于资源加载的问题 [ 79%]

...){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行

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