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

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

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

..."); 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

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

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

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

153. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 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怎么写呢? ```java package { imp...

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

154. 和原生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

155. Laya.URL.basePath加载不到网络资源 [ 24%]

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

156. [LayaAirIDE3]xcode切入切出声音不播放 [ 22%]

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

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

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