大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(320) Laya2.0_文档(40) Laya3.0_文档(10) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代...
来源: Laya_社区 发布时间: 20170829
...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果...
来源: Laya2.0_文档 发布时间: 20210715
...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }...
来源: Laya2.0_文档 发布时间: 20210715
...存在 https://3dparking-1256769450.cos.ap-shanghai.myqcloud.com/test/res/atlas/main.png 2019-06-13 0 12 分享 微博 QZONE 微信 kylin 赞同来自: 目前来看,即使加了版本管理,引用云上资源仍然引用的无版本号的资源。现在的问题是即使是无版本管理的...
来源: Laya_社区 发布时间: 20190613
...的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之前的...
来源: Laya_社区 发布时间: 20200623
...载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运...
来源: Laya2.0_文档 发布时间: 20210715
...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager decodeBitmaps(urls:Array):void 解码Texture或者图集 LoaderManager event(type:String, data:* = null):Boolean 派发...
来源: Laya2.0_api 发布时间: 20190513
...dth >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX = 10; // 切片x轴数量 this.clip.autoPlay = true; // 动画自动播放 } } 二、通过代码...
来源: Laya3.0_文档 发布时间: 20251010
...w(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private fun...
来源: Laya_社区 发布时间: 20161107
...r logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.heigh...
来源: Laya_社区 发布时间: 20181010