大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
...l是已经formatURL过了的, 如果加载的是图集的话,再Loader.onLoad方法里加载图集关联的图片时就会出现问题,每张图集图片最后拼接成的url是带http头的,因此再次formatURL都会被return掉,导致最后加载不到资源 附件 : --> 2018-05-07 ...
来源: Laya_社区 发布时间: 20180507
...es/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
... at Graphics.__proto.drawTexture (laya.core.js:1438) at onloaded (laya.core.js:1737) at Graphics.__proto.loadImage (laya.core.js:1733) at Function.Animation.createFrames (laya.core.js:18203) at Animation.__proto.loadImages (laya.core.js:18...
来源: Laya_社区 发布时间: 20171015
... var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); 或者 this.headIcon.skin=this.result; } reader.readAsDataURL(file); } 2017-08-08 添加...
来源: Laya_社区 发布时间: 20170808
...ps://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // Laya.loader.load("map/tile_map.png"); 2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180528
...st.json中。此时在游戏中加载完atlas文件后会执行Loader.as的onLoaded中的如下代码 }else{ for (name in frames) { obj = frames[name];//取对应的图 tPic = pics[obj.frame.idx ? obj.frame.idx : 0];//是否释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cacheRes(url, T...
来源: Laya_社区 发布时间: 20180415
....js:1156) at LoaderManager.__proto._endLoad (laya.core.js:14773) at Loader.onLoaded (laya.core.js:14743) at EventHandler.__proto.runWith (laya.core.js:1399) at Loader.__proto.event (laya.core.js:1156) at Loader.__proto.endLoad (laya.core.js:16363) at Function.Loader.checkNext (laya.core.js:16399) ...
来源: Laya_社区 发布时间: 20181208
...Ok (apploader.js:6125:20) at apploader.js:6104:20 at FileReader.filereader.onload (apploader.js:6683:47) 2018-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 qian 赞同来自: 可以上传一个demo么 2018-...
来源: Laya_社区 发布时间: 20180108
...his.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new Laya.Animation(); //加载动画文件 this.tl.loadAnimation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stag...
来源: Laya_社区 发布时间: 20190117
...集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1; // 设置主角的...
来源: Laya_社区 发布时间: 20170525