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

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

41. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 84%]

...,也不会报错。 var loadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS},  // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张...

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

42. LayaIDE2.1资源发布目录更改后,版本生成的version.json有误! [ 84%]

...文件夹A里比如,在项目设置里把资源发布目录改成bin/A/res/atlas,把index.html目录改成bin/A, 发布微信小游戏生成的version.json文件有问题,内容是"A/res/atlas/xxx.png":"A/res/atlas/xxx-xxxxxx.png" 正确的应该是 "res/atlas/xxx.png":"res/atlas/xxx-xxxxxx.p...

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

43. clearRes好像没作用,或许我的用法不对 [ 84%]

...le.log("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 true")          ...

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

44. Animation的createFrames为何加载不了有的图集资源 [ 84%]

...() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1....

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

45. 资源加载后的 回调 [ 84%]

...oad(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载了,所以就不执行回调.   但是我需要每次都去回...

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

46. 分享:LayaAir下如何获取图集下的小图资源? [ 83%]

...表,F12打包图集并进行发布 F12导出后会出在动在bin/h5/res/atlas下自动生成.json和.png图片,该文件即为图集文件 步骤三:预加载图集并获取图集下的小图资源package { import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; imp...

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

47. laya接入fairyGUI的时候资源加载方式? [ 83%]

...时候资源加载方式?     Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/MainMenu.fui", type: laya.net.Loa...

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

48. 游戏资源加载问题! [ 82%]

...a - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader   多个图集的话...

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

49. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 82%]

... or false return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComple...

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

50. 游戏系怎么把一些共用的功能独立出来 [ 82%]

...在小游戏中加载抽奖程序的全部资源,包括JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handl...

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