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

大约有 717 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0052 秒)

211. 开关页面导致内存一直增长 [ 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

212. 我二进制资源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

213. 分享:如何使用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

214. 本人想做个批量加载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

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

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

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

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

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

218. 动画节点 · LayaAir3.0文档 · LAYABOX [ 75%]

...示(如图2-9)。 (图2-9) 最终生成的图集文件为同名的.atlas文件和.png文件(role.atlas和role.png)。其中,.atlas是LayaAir IDE特有的图集格式,仅用于图集。 2.3 设置自动播放(autoPlay) autoPlay属性可以设置是否自动播放,默认为false...

来源: Laya3.0_文档 发布时间: 20230629

219. 在 tiledmap 插入一个精灵在上面 [ 75%]

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

220. 模仿教程里的打地鼠写的代码,运行报错 [ 75%]

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