大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(320) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
...,也不会报错。 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
...文件夹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
...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
...() { //初始化引擎 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
...oad(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载了,所以就不执行回调. 但是我需要每次都去回...
来源: Laya_社区 发布时间: 20171103
...表,F12打包图集并进行发布 F12导出后会出在动在bin/h5/res/atlas下自动生成.json和.png图片,该文件即为图集文件 步骤三:预加载图集并获取图集下的小图资源package { import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; imp...
来源: Laya_社区 发布时间: 20160707
...时候资源加载方式? 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
...a - 知识达人 赞同来自: 改下这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader 多个图集的话...
来源: Laya_社区 发布时间: 20171227
... 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
...在小游戏中加载抽奖程序的全部资源,包括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