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

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

11. 关于多个小动画打包到一个图集动画的问题 [ 92%]

...看下上面的链接! JianHao • 2017-04-18 10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loade...

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

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

...y: 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.Handler.create(this, this.onLoaded1...

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

13. js进度,进度,js场景进度效果 [ 91%]

...SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading...

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

14. 如何显示动画ani [ 91%]

...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...

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

15. 分享:LayaAir下如何获取图集下的小图资源? [ 91%]

...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...

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

16. Laya.URL.basePath加载不到网络资源 [ 91%]

...网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.ba...

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

17. 1.6.2打包的图集不能使用 [ 90%]

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

18. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 90%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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

19. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 90%]

...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader 和 Loade...

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

20. comp,json [ 90%]

...不是html路径 我应该如何处理 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.at...

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