Search Issue Tracker
Fixed in 2018.3.X
Votes
2
Found in
5.3.0b4
Issue ID
739081
Regression
No
Mute audio option state isn't saved and is always disabled when editor is reopened
This works in current trunk version, no idea when it was fixed, but probably quite a long time ago.
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Template is opened in Isolation when opening it in Context and users Save the UI Document when prompted to do so in UI Builder
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
WillemKokke
Jul 19, 2016 22:46
I find this slightly annoying as well, so I've written the following editor script to do this for me:
using UnityEditor;
[InitializeOnLoad]
public static class EditorMuteAudioState
{
static EditorMuteAudioState()
{
EditorUtility.audioMasterMute = EditorPrefs.GetBool("WKGameViewAudioMute", false);
EditorApplication.playmodeStateChanged += () =>
{
EditorPrefs.SetBool("WKGameViewAudioMute", EditorUtility.audioMasterMute);
};
}
}