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

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

391. 加载-销毁Texture使用的图片资源 [ 84%]

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

392. Texture2D.load监听完成 [ 84%]

...|黑屏|花屏 Skeleton 类播放完成一遍后有没事件或者回调 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 怎么移除鼠标监听事件 UI加载完成后无法获取控件的大小——超详细版问题 鼠标点击事件...

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

393. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 84%]

...       //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/a...

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

394. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 84%]

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

395. 报错 Laya 的标识符中重复 [ 84%]

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

396. 3D粒子现在支持Render Mesh吗? [ 84%]

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

397. MovieClip 的 bug [ 84%]

...,临时你也可以通过修改代码来添加保护: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

398. 请教下微信小游戏的内存和数据缓存? [ 84%]

...新编译。 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 微信小程序canvas如何使用layaAir引擎 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 我用list.ar...

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

399. 关于as版的Animation.createFrames()不能工作? [ 84%]

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

400. Animation模板动画的移除 [ 84%]

...的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓存,这个是主要是因为,资源虽然移除了,但是模板动画依然存在缓存数据。 解决方案如下: 1、通过设置Loader.clearRes的第二个...

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