游戏开发-cocos creator踩坑-cc.audioEngine.setMusicVolume

2.1.0版本引擎,在使用cc.audioEngine.setMusicVolume设置音量时,让游戏静音把音量设置为0但是无效,

cc.audioEngine.setMusicVolume(0)
解决办法是设置为0.01
cc.audioEngine.setMusicVolume(0.01)

猜你喜欢

转载自www.cnblogs.com/orxx/p/11008852.html