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

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

61. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 80%]

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

62. 资源加载失败的回调方法是啥 [ 79%]

...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load().on(Event.ERROR,this,onError);   2018-01-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相关问题 两个对象new了一个相同的...

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

63. [LayaAir3]自定义字体在移动浏览器起作用 [ 79%]

...在移动浏览器就显示了。我在项目启动之初使用了Laya.loader.load预加载字体,PC浏览器日志显示字体被加载了,移动浏览器有报错。     Laya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => {...

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

64. UI加载完成后无法获取控件的大小——超详细版问题 [ 79%]

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

65. tween 的 update 怎么是回调一次!!! [ 79%]

...有变化,怎么回事啊? 网络send 回调?什么情况? Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 http 请求 once 的 回调参数,如何传递和接收? Laya.Handler.create 加载图片...

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

66. LayaFlash中的preSwfAssets预加载资源有提供回调方法获取加载进度么 [ 79%]

...加载资源有提供回调方法获取加载进度么,目前只能通过Loader加载单个资源获得回调,加载数组的话有方法么 2017-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS ...

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

67. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并能真正释放资源的bug [ 79%]

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

68. Laya.loader.create 加载的中途断网 简直是灾难 [ 79%]

LayaAir引擎 Laya.loader.create 加载的中途断网 简直是灾难 Laya.loader.create 加载ls的过程中 断网 简直是灾难 无论如何处理 都无法正确的接着完成。 Laya.loader.clearRes(error, true); 然后在 Laya.loader.clearUnLoaded(); 各种崩溃 在断网的同阶段...

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

69. Laya.loader.create 加载进度问题 [ 78%]

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

70. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 78%]

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