大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0197 秒)
Laya_社区(2466) Laya2.0_文档(107) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...小 var assets:Array = ; assets.push({url:"map/157.jpg", type:Loader.IMAGE}); Laya.loader.load(assets, Handler.create(this, loadMapBGComplete)); function loadMapBGComplete():void{ var tx:Texture = Laya.loader.getRes("map/157.jpg"); this._test....
来源: Laya_社区 发布时间: 20170411
...._loadAnimationData方法内释放.ani文件的调用位置不对 如图,Loader.clearRes(url)在没加载完.ani就调用了,应该在Laya.loader.load的的完成回调内调用 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20181219
...= assets; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); sp.destroy(); 这些都测试过,没有消减 curmem。 图片 506*9...
来源: Laya_社区 发布时间: 20180622
...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...
来源: Laya_社区 发布时间: 20190708
...摄像机 获取.lh文件节点克隆显示正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1)); //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常 //Laya.loader.create(resource, Laya....
来源: Laya_社区 发布时间: 20200107
...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...
来源: Laya_社区 发布时间: 20180424
...Info.__proto.event (http://127.0.0.1:17168/game/code.js:18812:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:17168/game/code.js:31710:11) at Loader.onLoaded (http://127.0.0.1:17168/game/code.js:31686:10) at EventHandler.__proto.runWith (http://127.0.0.1:17168/game/code.js:...
来源: Laya_社区 发布时间: 20191017
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...
来源: Laya_示例 发布时间: 20260818
... 引擎版本1.7.18beta 我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS}, {url: "res/atlas/xxx2.json", type: Loader.ATLAS}, {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(... 并且在...
来源: Laya_社区 发布时间: 20180505
...les/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:...
来源: Laya_社区 发布时间: 20210420