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

大约有 1,602 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

91. 关于微信小游戏音频控制的问题 [ 83%]

... 按官网的实例,我开始播放时是直接调用的 Laya.SoundManager.playSound(url, 1, new Laya.Handler(this, this.onComplete)); 但因为很多音效都是属于重复播放,而这个playSound()方法会返回一个SoundChannel,所以我就尝试用了一个dictionary把这些SoundChannel都...

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

92. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 83%]

....skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } 附件 : --> SpineTestProject.zip 2023-07-03 添加评论 ...

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

93. 求救 Laya2.0下的Particle2D问题 [ 82%]

...Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问题在下面://如果首次传入E/Q,尾焰正常出现在需要的位置,但是这个粒子会“循环”播放,一会出现一会消失....//如果首次传入W/...

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

94. untiy导出的粒子特效有播放完成的回掉吗? [ 82%]

...交 3 个回复 183*****755 赞同来自: 开始播放时调度 : Event.PLAYED 暂停播放时调度 : Event.PAUSED 完成一次时调度 : Event.COMPLETE 停止播放时调度 : Event.STOPPED 2017-05-13 0 1 分享 微博 QZONE 微信 183*****755 赞同来自: 现在文档是不全的,这...

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

95. Tween.to 执行失败 [ 82%]

...e done") ; } function onWalk(dir){ switch(dir){ case "up": hero_p1.roleAni.play(0,true,"p1_walk_up"); Laya.stage.addChild(hero_p1.roleAni); break ; case "down": hero_p1.roleAni.play(0,true,"p1_walk_down"); Laya.stage.addChild(hero_p1.roleAni); break ; case "left": hero_p1.roleAni.play(0,true,"p1_wal...

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

96. 关于movieClip播放swf的问题 [ 82%]

...Path = emotionSwf.load(emotionSwfPath, true, emotionAltasPath); emotionSwf.play(0,false); emotionSwf.playTo(0, emotionSwf.count, Laya.Handler.create(this,() => { emotionSwf.stop(); emotion.visible = false; })); 如上代码,发现调研play(0,false)后,动画还是一直循环播放,还是e...

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

97. 版本升级出现问题。1.7.6=》1.7.13 .图集全部乱掉了 [ 82%]

...er):Boolean { cur_time += delta; var distance_percent:Number = (cur_time / play_time) * (1 - Math.log(cur_time / play_time)); ani.x = startX + (endX - startX) * distance_percent ani.y = startY + (endY - startY) * distance_percent var speed:Number = -Math.log(cur_time / play_time) ani.interval = (35 ...

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

98. 如何使用animator把动画播放到指定帧然后立刻暂停? [ 82%]

...立刻暂停? 在unity里使用我这样用可以达到效果 animator.Play("idle", 0, 0.5f); animator.speed = 0f;但是这样的代码在Laya里面好像并没有效果。 但是如果把speed设置的很小就可以。好像是只有_update里面刷新了视图,在play里面没有刷新 animat...

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

99. 内置骨骼动画 · LayaAir3.0文档 · LAYABOX [ 82%]

... this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler(): void { this.play(); } //播放骨骼动画 private play(): void { //每次到下一个动画 this.mCurrIndex++; if (this.mCurrIndex >= this.mArmature.getAnimNum()) { this.mCurrIndex =...

来源: Laya3.0_文档 发布时间: 20230303

100. 骨骼动画的多纹理疑问 [ 82%]

骨骼动画的多纹理疑问 mArmature.play(mCurrIndex,false); 这个模板的play事件templateAPI里没有找到,另外第二个参数,我改成true也没发现有什么变化,第二个参数什么作用的,原来我以为是只重复执行意思,但是去掉括号里的第二个参...

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