UnityEditor.AudioMixerWindow.AddItemsToMenu C# (CSharp) Method

AddItemsToMenu() public method

public AddItemsToMenu ( GenericMenu menu ) : void
menu GenericMenu
return void
        public virtual void AddItemsToMenu(GenericMenu menu)
        {
            menu.AddItem(new GUIContent("Sort groups alphabetically"), this.m_SortGroupsAlphabetically, () => this.m_SortGroupsAlphabetically = !this.m_SortGroupsAlphabetically);
            menu.AddItem(new GUIContent("Show referenced groups"), this.m_ShowReferencedBuses, () => this.m_ShowReferencedBuses = !this.m_ShowReferencedBuses);
            menu.AddItem(new GUIContent("Show group connections"), this.m_ShowBusConnections, () => this.m_ShowBusConnections = !this.m_ShowBusConnections);
            if (this.m_ShowBusConnections)
            {
                menu.AddItem(new GUIContent("Only highlight selected group connections"), this.m_ShowBusConnectionsOfSelection, () => this.m_ShowBusConnectionsOfSelection = !this.m_ShowBusConnectionsOfSelection);
            }
            menu.AddSeparator("");
            menu.AddItem(new GUIContent("Vertical layout"), this.layoutMode == LayoutMode.Vertical, () => this.layoutMode = LayoutMode.Vertical);
            menu.AddItem(new GUIContent("Horizontal layout"), this.layoutMode == LayoutMode.Horizontal, () => this.layoutMode = LayoutMode.Horizontal);
            menu.AddSeparator("");
            if (<>f__am$cache0 == null)
            {
                <>f__am$cache0 = () => EditorPrefs.SetBool(kAudioMixerUseRMSMetering, true);
AudioMixerWindow