大约有 239 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...
来源: Laya_社区 发布时间: 20180326
...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...
来源: Laya_社区 发布时间: 20180613
...sole.log("加载文件测试1", i, fileUrl); })); 2、Laya.loader.load() 循环多个文件加载测试,均只能加载第一个文件,后续无回调。 3、MiniFileMgr.fs.readFilesync 同步可以读到文件。 4、Main.ts中 交换几个配置文件,均是第一个配置能...
来源: Laya_社区 发布时间: 20200111
...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载不回来了吗?为何再次加载同一图片显示时有延迟? http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...
来源: Laya_社区 发布时间: 20190312
...tp://layaair.ldc.layabox.com/demo/?Particle_T1 ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); public function onAssetsLoaded(settings:ParticleSetting):void { sp = new Particle2...
来源: Laya_社区 发布时间: 20170522
... ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://b...
来源: Laya_社区 发布时间: 20180208
...载的方法 Monica • 2017-10-18 16:14 @Zzz18815519:预加载就是Laya.loader.load() Zzz18815519 • 2017-10-18 16:17 用Laya.loader.load怎么获得Laya.BitmapFont对象进行命名和注册 Zzz18815519 • 2017-10-18 16:19 Laya.loader.getRes("xxx.fnt")这种方式吗? Monica • 201...
来源: Laya_社区 发布时间: 20171018
... //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/a...
来源: Laya_社区 发布时间: 20180513
...看下上面的链接! 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
...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) { var but:Bu...
来源: Laya_社区 发布时间: 20170320