Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

The "Mute Audio" button in the Unity editor no longer works

0 votes
Hello,

In the Unity editor, is it possible to link the "Mute Audio" button to the Wwise master or to another setting to mute the sound? This button has no functionality when Wwise is integrated.

Thanks

Théophile
asked Sep 1, 2022 in General Discussion by Théophile Demarcq (1,550 points)

1 Answer

0 votes
This is how I handled it.

#if UNITY_EDITOR
  AkAudioListener _akAudioListener;

  void Awake()
  {
    _akAudioListener = Object.FindObjectOfType<AkAudioListener>();
  }

  void Update()
  {
    _akAudioListener.enabled = !EditorUtility.audioMasterMute;
  }
#endif
answered Jan 23, 2023 by Ueda S. (180 points)
...