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

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

11. laya.events.EventDispatcher_API3.0 [ 66%]

...所有类的基类。 Hierarchy EventDispatcher Resource Node Transform3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionManager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener of...

来源: Laya3.0_api 发布时间: 20231115

12. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 65%]

...eEx.prototype.pause = function () { console.log("停止播放音乐") Laya.SoundManager.stopMusic(); //停止游戏主循环 Laya.timer.clear(this, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); }  //恢复 GameEx.prototype.resume = function () { //在循...

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

13. 背景音乐来回切换报错 [ 58%]

...回复 Nevermore 赞同来自: 代码很简单 先load 再play  let dreamsSound:Laya.SoundChannel = null         Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){             dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3")         }))  ...

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

14. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 56%]

...connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } ``` ​ 运行上面的js代码,单击页面就会听到声音播放出来了。那么用LayaAir怎么写呢? ```java package { imp...

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

15. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } 运行上面的js代码,单击页面就会听到声音播放出来了。那么用LayaAir怎么写呢? var audioCtx: any = new (Laya...

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

16. videoNode在安卓上不能播放 [ 53%]

...D和1.7.*都没问题 3d物理不能触发onCollisionEnter事件 求教: soundManager如何停止正在播放的背景音乐 打包安卓,代码正常运行,但是黑屏 问题状态 最新活动: 2023-10-09 17:15 浏览: 2638 关注: 2 人 莱娅 • 2023-10-09 16:16 感谢回复,change demo...

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

17. [LayaAirIDE3]xcode切入切出声音不播放 [ 36%]

...所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();         // // 部分机型包内不生效         SoundManager.Instance.pauseAllEffects();     }    private onFocus() {         if (!SoundManager.isPlay) {             S...

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

18. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 25%]

...oject1/release/harmony/LayaProject1/libSysCapabilities/src/main/ets/system/sound/SoundUtils.ts:3:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the na...

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