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

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

251. Laya.SoundManager.playSound 无法播放出音效 [ 75%]

...不能正常播放,也没有任何错误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/h...

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

252. 微信小游戏资源总是加载旧的资源 [ 75%]

...   引擎版本1.7.18beta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在...

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

253. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 75%]

...自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-2...

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

254. “\bin”下的res文件夹删除了,里面的atlas文件该怎么生成? [ 75%]

...地图显示有误 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2018-01-24 00:22 浏览: 1177 关注: 1 人

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

255. Laya.URL.basePath与Laya.loader.load用法 [ 75%]

Laya.URL.basePath与Laya.loader.load用法 你好,layabox小白一枚,求教Laya.URL.basePath与Laya.loader.load用法,谢谢 2016-12-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: ...

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

256. 如何把加载好的二进制数据转成Texture? [ 75%]

如何把加载好的二进制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你...

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

257. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 75%]

...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...

来源: Laya2.0_文档 发布时间: 20210715

258. 技术文档中的示例js运行报错 [ 75%]

...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...

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

259. 加载问题,已经解决,有遇到加载问题的可以看看 [ 74%]

加载问题,已经解决,有遇到加载问题的可以看看 Laya.loader.create(res, Laya.Handler.create(this, function(obj){ this.loadFinish(obj,res); })); Laya2.3.0 微信小游戏 如果在create回调里面再去Laya.loader.create,有的手机有概率就是加载失败,平均10000人...

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

260. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 74%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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