大约有 2,781 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0070 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...; this.aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprit...
来源: Laya_示例 发布时间: 20251209
...|黑屏|花屏 Skeleton 类播放完成一遍后有没事件或者回调 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 怎么移除鼠标监听事件 UI加载完成后无法获取控件的大小——超详细版问题 鼠标点击事件...
来源: Laya_社区 发布时间: 20180207
... //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/a...
来源: Laya_社区 发布时间: 20180513
...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...
来源: Laya_社区 发布时间: 20180613
...e.bgColor = "#232628"; var res = [ {url:"res/atlas/loading.json",type:Laya.Loader.ATLAS}, //{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE}, //{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE} ]; Laya.loader.load(res); showact(); })(); 2016-12-30 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20161230
... at Function._getSprite3DHierarchyInnerUrls (laya.d3.js:31462) at Loader._onHierarchylhLoaded (laya.d3.js:31477) at EventHandler.runWith (laya.core.js:999) at Loader.event (laya.core.js:1038) at Loader.complete (laya.core.js:18719) at Loader.onLoaded (laya.core.js:18...
来源: Laya_社区 发布时间: 20200518
...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...
来源: Laya_社区 发布时间: 20180910
...新编译。 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 微信小程序canvas如何使用layaAir引擎 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 我用list.ar...
来源: Laya_社区 发布时间: 20180120
...ite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Lay...
来源: Laya_社区 发布时间: 20161026
...的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓存,这个是主要是因为,资源虽然移除了,但是模板动画依然存在缓存数据。 解决方案如下: 1、通过设置Loader.clearRes的第二个...
来源: Laya_社区 发布时间: 20161129