大约有 254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
Laya_社区(161) Laya3.0_api(22) laya_api(21) Laya2.0_api(16) Laya2.0_文档(13) Laya2.0_示例(8) Laya_示例(8) Laya3.0_文档(5)
...FastRender就会复现,当然我也有把最新github上修正spine动画stop状态错误的问题,重新编译了 https://github.com/layabox/LayaAir/commit/3bca9eed195b2b1b7ef68256ed3c9332615b8309 开启FastRender下在编辑器预览 禁用FastRender下在编辑器预览 附件 : --> 202...
来源: Laya_社区 发布时间: 20241224
...动更新缓存,只能通过调用reCache方法手动刷新。Sprite stopEvent : String[write-only] 设置触发停止的事件 SoundNode target : Sprite[write-only] 设置控制播放的对象 SoundNode texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他...
来源: laya_api 发布时间: 20170422
...,增加函数 __proto.resetPlay=function(){ this._sound.stop(); this._sound.volume = 1; this._sound.offPlay(); } 2 在MiniSound类的onDownLoadCallBack函数中,this._sound.onError(MiniSound.bindToThis(this.onError,this)); 这一句的后面,增加如...
来源: Laya_社区 发布时间: 20181026
...用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler(): void { this.play(); } //播放骨骼动画 private play(): void { //每次到下一个动画 this.mCurrIndex++; if (this.mCurrIndex >= thi...
来源: Laya3.0_文档 发布时间: 20251010
...没必要销毁): SoundManager.playMusic方法中_bgMusic移到channel.stop下面。 SoundManager.disposeSoundLater方法开头if(url == SoundManager._bgMusic) return; 2.存背景音乐的_audioCache的key和其他的集合中的背景音乐用同一个key,改变内容前做对象清理,改...
来源: Laya_社区 发布时间: 20210112
...出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示例的完整代码地址为:[https...
来源: Laya2.0_文档 发布时间: 20210715
...出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示例的完整代码地址为:[https...
来源: Laya2.0_文档 发布时间: 20210714
...发者有两种方式,来避免。 一种是在入口文件中,将autoStopMusic设置为false。 ```typescript …… //失去焦点后是否自动停止背景音乐。false不自动停止,一直播。true是自动停止 Laya.SoundManager.autoStopMusic = false; …… ``` 如果不设置这个...
来源: Laya2.0_文档 发布时间: 20210715
...了。 提示了以下错误 ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/do ... bview for more information。 希望官方尽快修复,不然之后就无法上架了 2019-09-10 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20190910
....stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine(url, handler: L...
来源: Laya_社区 发布时间: 20220530