大约有 717 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0052 秒)
Laya_社区(623) Laya2.0_文档(49) Laya3.0_文档(25) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...ResMgr.ins.clearTextureImg(WindowNpc.ResList);//clearTextureRes方法清理atlas } 这个页面的资源 static ResList: Array<Object> = [ { url: "npc.json", type: Laya.Loader.JSON }, { url: "packatlas/uiatlasnew/talk.atlas", type: Laya.Lo...
来源: Laya_社区 发布时间: 20200915
...es方法获取不到。部分代码如下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, fa...
来源: Laya_社区 发布时间: 20180816
...t(600, 400); // 预加载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya...
来源: Laya_社区 发布时间: 20170522
...: 星星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(thi...
来源: Laya_社区 发布时间: 20180518
...:45 浏览: 1791 关注: 2 人 k002 • 2018-06-23 11:59 哦,就是加载atlas时需配合代码来进行加载吗 不知道理解是不是正确的 Laya_Aaron • 2018-06-23 12:12 这个asset是放碎图的 ,他发布会自动合成大图。 你说的那个合并好的图和这个自动合成...
来源: Laya_社区 发布时间: 20180622
...信 宁远 赞同来自: let tex = Laya.loader.getRes("res/atlas/test.png"); let img = new Laya.Sprite(); img.size(100,100); img.x = 400; img.y = 0; img.graphics.drawTexture(tex,0,0,100,100); ...
来源: Laya_社区 发布时间: 20190730
...estAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } else if(event.keyCode === Keyboard.A) { //加载动画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], H...
来源: Laya_社区 发布时间: 20180424
...示(如图2-9)。 (图2-9) 最终生成的图集文件为同名的.atlas文件和.png文件(role.atlas和role.png)。其中,.atlas是LayaAir IDE特有的图集格式,仅用于图集。 2.3 设置自动播放(autoPlay) autoPlay属性可以设置是否自动播放,默认为false...
来源: Laya3.0_文档 发布时间: 20230629
... init():void{ Laya.init(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ console.info("onLoaded"); this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("desert.json", new Laya.Rec...
来源: Laya_社区 发布时间: 20171125
...色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var backgro...
来源: Laya_社区 发布时间: 20180129