UnityEditor.AudioManagerInspector.OnInspectorGUI C# (CSharp) Method

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void
        public override void OnInspectorGUI()
        {
            base.serializedObject.Update();
            EditorGUILayout.PropertyField(this.m_Volume, Styles.Volume, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_RolloffScale, Styles.RolloffScale, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_DopplerFactor, Styles.DopplerFactor, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_DefaultSpeakerMode, Styles.DefaultSpeakerMode, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_SampleRate, Styles.SampleRate, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_DSPBufferSize, Styles.DSPBufferSize, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_VirtualVoiceCount, Styles.VirtualVoiceCount, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.m_RealVoiceCount, Styles.RealVoiceCount, new GUILayoutOption[0]);
            List<string> list = new List<string>(AudioUtil.GetSpatializerPluginNames());
            list.Insert(0, "None");
            string[] strs = list.ToArray();
            List<GUIContent> list2 = new List<GUIContent>();
            foreach (string str in strs)
            {
                list2.Add(new GUIContent(str));
            }
            EditorGUI.BeginChangeCheck();
            int selectedIndex = this.FindPluginStringIndex(strs, this.m_SpatializerPlugin.stringValue);
            selectedIndex = EditorGUILayout.Popup(Styles.SpatializerPlugin, selectedIndex, list2.ToArray(), new GUILayoutOption[0]);
            if (EditorGUI.EndChangeCheck())
            {
                if (selectedIndex == 0)
                {
                    this.m_SpatializerPlugin.stringValue = string.Empty;
                }
                else
                {
                    this.m_SpatializerPlugin.stringValue = strs[selectedIndex];
                }
            }
            EditorGUI.BeginChangeCheck();
            EditorGUILayout.PropertyField(this.m_DisableAudio, Styles.DisableAudio, new GUILayoutOption[0]);
            base.serializedObject.ApplyModifiedProperties();
        }