大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(632) Laya2.0_文档(49) Laya3.0_文档(29) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...体结构请参考附件 Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestVi...
来源: Laya_社区 发布时间: 20170608
...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
...th; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atlas/comp/hscroll.png"; this.panel.elasticEnabled = true; //橡皮筋效果 } } 二、通过代码创建Panel组件 Panel组件除了可以直接在UI界面中可视化...
来源: Laya3.0_文档 发布时间: 20251010
...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
....7版worker加载图片404 分析代码发现,给worker传入的url变为atlas/comp/button.png 于是worker得到的url是http://localhost:18090/libs/atlas/comp/button.png,所以出现了404正确的url应该是http://localhost:18090/atlas/comp/button.png 附件 : --> Laya3.2_.7bugDemo_.zip 2025...
来源: Laya_社区 发布时间: 20250701
...: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