大约有 371 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...
来源: Laya_社区 发布时间: 20171016
...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load().on(Event.ERROR,this,onError); 2018-01-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相关问题 两个对象new了一个相同的...
来源: Laya_社区 发布时间: 20180111
...在移动浏览器就显示不了。我在项目启动之初使用了Laya.loader.load预加载字体,PC浏览器日志显示字体被加载了,移动浏览器有报错。 Laya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => {...
来源: Laya_社区 发布时间: 20250616
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...
来源: Laya_社区 发布时间: 20170720
...有变化,怎么回事啊? 网络send 不回调?什么情况? Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 http 请求 once 的 回调参数,如何传递和接收? Laya.Handler.create 加载图片...
来源: Laya_社区 发布时间: 20190520
...加载资源有提供回调方法获取加载进度么,目前只能通过Loader加载单个资源获得回调,加载数组的话有方法么 2017-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS ...
来源: Laya_社区 发布时间: 20170322
Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"]; Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show...
来源: Laya_社区 发布时间: 20181018
LayaAir引擎 Laya.loader.create 加载的中途断网 简直是灾难 Laya.loader.create 加载ls的过程中 断网 简直是灾难 无论如何处理 都无法正确的接着完成。 Laya.loader.clearRes(error, true); 然后在 Laya.loader.clearUnLoaded(); 各种崩溃 在断网的不同阶段...
来源: Laya_社区 发布时间: 20180726
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514
...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...
来源: Laya_社区 发布时间: 20180315