大约有 580 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(372) Laya2.0_文档(74) Laya_示例(51) Laya2.0_示例(39) Laya3.0_文档(34) Laya3.0_api(8) Laya2.0_api(2)
如何清理预加载的图集资源??? 通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20180124
...e(); // 守护神 this.angel = new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x...
来源: Laya_社区 发布时间: 20170720
...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20170417
...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader 和 Loade...
来源: Laya_社区 发布时间: 20180518
...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...壳~~!! 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 怎么清除graphics画出的图像啊?? Tween.clear(tween) 清除所问题 微信小...
来源: Laya_社区 发布时间: 20191113
关于位图字体 是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT); 应该没什么问题了,就是这样的 附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170207
...undefined at Function.Laya3D.formatRelativePath (libs/laya.d3.js:14313) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at L...
来源: Laya_社区 发布时间: 20181203
...增。 【问题如下】: 问题1:clearRes释放资源之后,Laya.loader.load重新加载同一个资源为什么GPUMemory会不停的增加? 问题2:Laya.loader.clearRes之后,GPUMemory为什么不降低,如果clearRes不会释放内存,那这个接口的作用是什么? 【Demo...
来源: Laya_社区 发布时间: 20190307
...能找到错误 let _url = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to loa...
来源: Laya_社区 发布时间: 20200922