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

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

81. 报加载脚本错误?为什么 [ 76%]

... 报错 微信小游戏与加载图片时不会触发erroe事件 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 问题状态 最新活动: 2019-04-11 16:43 浏览: 891 关注: 2 人

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

82. 不存在的资源路径问题 [ 76%]

...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...

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

83. 将字节数组转为图片 [ 75%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

84. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 75%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

85. 使用分包后在,会在编译出的主js文件的199行插入类型描述代码,但编译不过! [ 75%]

...TestA这个类还有没有被定义,因为装载类的地方在在Laya.loader.load之后。   目前要想正确运行只有把199的代码删除,并添加到Laya.loader.load完成事件之后   有没有什么方式可以让编译器不插入 199行的描述代码,交给用户自己去手...

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

86. 导入微信小游戏的时候 [ 75%]

...esInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:65353/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:65353/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:...

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

87. 微信小游戏报错 the .lh file root type must be Scene [ 74%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

88. Laya Air Ide每次启动layaair调试时能否不清除已经下载的缓存? [ 74%]

...调试时能否不清除已经下载的缓存? 在游戏中,我用Laya.loader.load("xxx")从网络上下载了资源,但是每次重启layaair调试时候,我用Laya.loader.getRes("xxx")却显示未定义。请问该怎么处理呢?? 2018-11-30 添加评论 免费帖 --> 分享 微博 QZ...

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

89. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 74%]

...加 每张图片都是256*256大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false...

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

90. IDE动画 添加过程出现图片资源丢失 [ 74%]

...  代码:  var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}];                      Laya.loader.load(ress);                     var Animation = Laya.Animation;                     var dice=new Animation();              ...

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