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

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

141. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 38%]

...景音乐时则永远无声! 个人解决办法如下,对引擎代码 SoundManager.playSound 方法做了修改,多则删减,少则补足,请官方酌情修复此bug!SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime...

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

142. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

..."); owner.getComponent(Laya.RigidBody).setVelocity({ x: 0, y: -10 }); Laya.SoundManager.playSound("resources/sound/hit.wav"); } else { if (owner.parent) { let effect: Laya.Sprite = Laya.Pool.getItemByCreateFun("effect", this.createEffect, this); owner.parent.addChild(effect);//将爆炸动画添加...

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

143. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 33%]

...          }             else if (type === Loader.SOUND || type === "nativeimage") {                 this.complete(data);             }             else if (type === "htmlimage") {                 let tex =...

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

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

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

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

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

146. Laya.URL.basePath加载不到网络资源 [ 25%]

...768:1 Resources already exist,is repeated loading: https://piggy.q1.comres/sound/BGM.mp3 console.warn @ VM1768:1 Loader.cacheRes @ code.js:12995 SoundManager.playSound @ code.js:4963 SoundManager.playMusic @ code.js:4988 GameEx.onLoaded @ code.js:57359 GameEx.onLoaded2 @ code.js:57325 __proto.runWit...

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

147. [LayaAirIDE3]xcode切入切出声音不播放 [ 23%]

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

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

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

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