UnityEditor.AudioMixerGroupViewList.OnMixerControllerChanged C# (CSharp) Method

OnMixerControllerChanged() public method

public OnMixerControllerChanged ( UnityEditor.Audio.AudioMixerController controller ) : void
controller UnityEditor.Audio.AudioMixerController
return void
        public void OnMixerControllerChanged(AudioMixerController controller)
        {
            this.m_Controller = controller;
            this.RecreateListControl();
        }

Usage Example

示例#1
0
        void OnMixerControllerChanged()
        {
            if (m_Controller)
            {
                m_Controller.ClearEventHandlers();
            }

            m_MixersTree.OnMixerControllerChanged(m_Controller);
            m_GroupTree.OnMixerControllerChanged(m_Controller);
            m_GroupViews.OnMixerControllerChanged(m_Controller);
            m_ChannelStripView.OnMixerControllerChanged(m_Controller);
            m_SnapshotListView.OnMixerControllerChanged(m_Controller);

            if (m_Controller)
            {
                m_Controller.ForceSetView(m_Controller.currentViewIndex);
            }
        }