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

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

11. 在加载多个资源的时候,加载进度异常 [ 94%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

12. 游戏资源加载问题! [ 94%]

...ZONE 微信 Monica - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader   ...

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

13. 资源加载后的 回调 [ 94%]

...的语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第...

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

14. Loader.ATLAS、sk格式连带加载png图时后面的?v=版本号不会更新如何解决? [ 93%]

Loader.ATLAS、sk格式连带加载png图时后面的?v=版本号不会更新如何解决? 如图,浏览器H5为了实现后台资源更新时前端可以及时更新,会在加载的资源后面写上?v=版本号之类的以达到目的,这个版本号肯定是在配置文件里,上...

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

15. 关于图集和配置文件(json || atlas)的问题 [ 93%]

...是 var resArray:Array<any>=[ {url:"h5/UI.atlas",type:Laya.Loader.ATLAS}, {url:"h5/UI/so_main_base.png",type:Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray,Laya.Handler.create(this,initUI)); 单图就是so_main_base.png,死活就加载不出来, 报错 [warn]Retry to ...

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

16. 1.6.2打包的图集不能使用 [ 93%]

1.6.2打包的图集不能使用 图集大小只有77K 了, 然后loader.load之后,总是显示longtime  。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(long...

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

17. IOs使用手动删除本地资源再次进去加载问题 [ 92%]

...ginLoad(){ var res_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar.png", type : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, ...

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

18. 用Loader加载完atlas,然后使用animation播放问题 [ 92%]

Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...

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

19. 内存释放问题 [ 92%]

...ion): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS }, { url: resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH, type: Lay...

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

20. 使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas等文件没有缓存 [ 92%]

使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas等文件没有缓存 使用Laya.loader.load时,为什么本地文件只缓存了缓存.png和.jpg。.json、.atlas等文件没有缓存。以致这些没有缓存的文件每次都从CDN上下载 2019-...

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