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

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

181. 如何清理预加载的图集资源??? [ 65%]

如何清理预加载的图集资源??? 通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

182. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 65%]

...   Laya3D._onTextureCubeLtcLoaded Laya3D._onTextureCubeLtcLoaded=function(loader,ltcData){         if (loader._class.destroyed){             loader.endLoad();             }else {             var ltcBasePath=URL.getPath(loader.url);            ...

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

183. Cannot read property 'load' of null [ 65%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

184. 自己创建的box作为tab,为啥没有点击事件啊? [ 65%]

自己创建的box作为tab,为啥没有点击事件啊? var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass...

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

185. Laya.SoundManager.playSound播放声音不全 [ 65%]

...音频文件放在服务器端,在微信小游戏中,不管使不使用Loader来加载,都会有这个问题,把音频文件放到本地,再使用Loader来加载就可以了 如果能加载网络音频,能否告知怎么使用? //预加载声音 Laya.loader.load(BOX_OVER, Laya.Handler....

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

186. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 64%]

...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader Loade...

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

187. 将字节数组转为图片 [ 64%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

188. Laya.Video内存泄漏问题 [ 64%]

..., 800); Laya.Stat.show(0,0); var video_url = '带有音轨的视频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_ur...

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

189. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 64%]

...pleteHandler:Handler):void { this._completeHandler = completeHandler; Laya.loader.load('test.txt',Handler.create(this, onloaded)); } private function onloaded():void { trace('B',_completeHandler.method == null,_completeHandler['_id']) _completeHandler.run(); } } } 附件 : --> testlaya.rar 2017-03-3...

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

190. 粒子释放问题 [ 64%]

...子释放问题 (function() { var Stage            = Laya.Stage; var Loader           = Laya.Loader; var Particle2D       = Laya.Particle2D; var Browser          = Laya.Browser; var Handler          = Laya.Handler; var Stat             = Laya.Stat; var WebGL      ...

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