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

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

1. clearRes好像没作用,或许我的用法不对 [ 100%]

...le.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 true")          ...

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

2. XMLHttpRequest cannot load [ 99%]

...42 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to ...

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

3. 图集版本加载问题 [ 99%]

...问题 var obj:any = {                             url:"res/atlas/comp.atlas?version=1.0.0",                             type: Loader.ATLAS                       };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/c...

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

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

...unction beginLoad(){     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 : "lo...

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

5. 预加载图集文集在小游戏端导致内存过高 [ 96%]

...端导致内存过高 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Ha...

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

6. 引擎自带的图集图片丢失问题 [ 96%]

...的图集图片丢失问题 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖...

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

7. 请教——layabox如何加载多个图集 [ 96%]

请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

8. 微信小游戏资源总是加载旧的资源 [ 95%]

...ta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在这之前已经加载并...

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

9. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 94%]

...载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/atlas/comp.atlas" , ...

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

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

...在加载多个资源的时候,加载进度异常 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){    co...

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