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

Scene/Game View

-

This works in current trunk version, no idea when it was fixed, but probably quite a long time ago.

Comments (1)

  1. 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);
    };
    }
    }

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.