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

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

361. Animation的createFrames为何加载不了有的图集资源 [ 59%]

...{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createF...

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

362. 2.0怎样播放音效? [ 59%]

...); SoundManager.playSound("../../../../res/sounds/btn.mp3", 1, new Handler(this, onComplete)); 2018-10-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 binhuawei 相关问题 IOS系统内嵌H5游戏,退到后台,等几秒返回音...

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

363. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 59%]

...rl: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

364. 调试总是中断了 [ 59%]

...nect to runtime process, timeout after 10000 ms - (reason: Can't attach to this target that may have Chrome DevTools attached - file:///D:/work/SlotProject2/bin/index.html). 2017-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

365. [LayaAirIDE3]spine播放指定动画报错 [ 59%]

[LayaAirIDE3]spine播放指定动画报错  this.walkSp.getComponent(Laya.Spine2DRenderNode).play("zou_lu_dai_ji", true);walksp(Laya.Sprite)上有一个spine动画,但是用以上代码播放的时候,就报错 附件 : --> 2025-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

366. 播放音效,duration为0 [ 58%]

...为0 代码如下: let sound_channel = laya.media.SoundManager.playSound(this.soundArray[soundIndex], 1) console.log(sound_channel.duration) 在H5环境下没问题,发布到微信小游戏之后,duration为0.   猜测是因为微信异步播放声音,duration延迟赋值?或者在微信...

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

367. worker的问题 [ 58%]

...接报错了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微...

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

368. 2D角色动画 [ 58%]

...关的链接 提交 2 个回复 laya21126 赞同来自: bodyAni.loadAtlas(this.bodyPath).loadAtlas(weaponPath).loadAtlas(wingPath).play(0, true, bodyPath);  这种显示不完整,只有一个部件显示了 还用这种方法没看明白,是这样用的吗? 2017-09-09 0 0 分享 微博 QZONE ...

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

369. Animator如何监听播放完毕 [ 58%]

... =... 2019-02-13 0 0 分享 微博 QZONE 微信 姜波 赞同来自: 通过this.animator.getCurrentAnimatorPlayState(0).normalizedTime>=1去判断当前动画是否播放完成 2019-02-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

370. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 58%]

...function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直...

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