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

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

31. Laya.Loader.getRes请教 [ 81%]

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

32. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 81%]

...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

33. QQ小游戏demo跑起来 MiniFileMgr.fs.readFile无回调 [ 80%]

...sole.log("加载文件测试1", i, fileUrl);         })); 2、Laya.loader.load() 循环多个文件加载测试,均只能加载第一个文件,后续无回调。 3、MiniFileMgr.fs.readFilesync 同步可以读到文件。 4、Main.ts中 交换几个配置文件,均是第一个配置能...

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

34. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 80%]

...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载回来了吗?为何再次加载同一图片显示时有延迟?   http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...

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

35. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示出来 [ 80%]

...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

36. load方法加载cdn上面的图片资源的时候直接报了跨域同源的问题,怎么破? [ 80%]

... ]; 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

37. IDE UI编辑器找到 BitmapFont [ 80%]

...载的方法 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

38. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 79%]

...       //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/a...

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

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

...看下上面的链接! 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

40. 按钮加载皮肤丢失 [ 79%]

...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) {                 var but:Bu...

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