大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...出,他们又会被放到一起去了 Laya.Animation.createFrames("res/atlas/war.atlas","hreo_fly") ; 我用这个createFrames实现飞机动画效果,旧版本,可以加多个单独的图片,, 但最新版的报错:supplied parameter do not match any signature of call target(提供的参...
来源: Laya_社区 发布时间: 20171207
...的地方),资源路径写错了。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不...
来源: Laya_社区 发布时间: 20170111
...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); } 不管添加多少资源,onProgress都只会调用一次 ...
来源: Laya_社区 发布时间: 20180428
...链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; ...
来源: Laya_社区 发布时间: 20170221
... 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 应该是atlas后缀的文件你没有在iis服务器上设置允许,建议你上网查下相关资料 2018-01-12 0 0 分享 微博 QZONE 微信 casd12222003d 赞同来自: 发现路径全错了,下面这个是选择合并JS后的...
来源: Laya_社区 发布时间: 20180112
UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...
来源: Laya_社区 发布时间: 20170720
...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...
来源: Laya_社区 发布时间: 20161103
..., (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评论 免...
来源: Laya_社区 发布时间: 20220122
...a.Scene { onAwake(): void { Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{ let aaa = new Laya.Sprite(); this.addChild(aaa); aaa.x = 100; aaa.y = 100; aaa.texture = dat...
来源: Laya_社区 发布时间: 20250801
...e = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool...
来源: Laya_社区 发布时间: 20170725