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

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

211. 分享:IDE使用SWF动画的销毁与反复创建 [ 76%]

...体结构请参考附件             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

212. 开关页面导致内存一直增长 [ 76%]

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

213. 我二进制资源load之后,为什么通过getRes获取不到。 [ 76%]

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

214. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

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

215. 分享:如何使用IDE创建的动画.ani文件进行显示! [ 76%]

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

216. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 76%]

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

217. [LayaAir3]Laya3.2.7版worker加载图片404 [ 75%]

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

218. 求教关于LayaAir 图集问题 [ 75%]

...:45 浏览: 1791 关注: 2 人 k002 • 2018-06-23 11:59 哦,就是加载atlas时需配合代码来进行加载吗 不知道理解是不是正确的 Laya_Aaron • 2018-06-23 12:12 这个asset是放碎图的 ,他发布会自动合成大图。 你说的那个合并好的图和这个自动合成...

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

219. drawToTexture 绘制函数不工作呢 [ 75%]

...信 宁远 赞同来自:         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

220. Animation创建和销毁的问题 [ 75%]

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