Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

AudioMixerSnapshot.TransitionTo doesn't work if called from Monobehavior.Start

$
0
0
While testing in the editor using Unity 5.0.0b12 on Mac.

I'm trying to implement an audio mute / toggle button to set a particular snapshot / state in Start() based on a playerPrefs. The default selected snapshot in the audio mixer is 'volume on'. refreshMixer is called as expected by the ValueChanged event.

With hack == 0, if I run the app once and mute the audio, then re-run the app the audio will not be muted because the TransitionTo call fails (or is ignored).

If hack == 2, it works as...

AudioMixerSnapshot.TransitionTo doesn't work if called from Monobehavior.Start

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>