UnityEditor.AudioMixerSnapshotListView.LoadFromBackend C# (CSharp) Method

LoadFromBackend() public method

public LoadFromBackend ( ) : void
return void
        public void LoadFromBackend()
        {
            if (this.m_Controller != null)
            {
                this.m_Snapshots.Clear();
                this.m_Snapshots.AddRange(this.m_Controller.snapshots);
            }
        }

Usage Example

示例#1
0
        void UpdateAfterAssetChange()
        {
            if (m_Controller == null)
            {
                return;
            }

            m_AllControllers = FindAllAudioMixerControllers();

            m_Controller.SanitizeGroupViews();
            m_Controller.OnUnitySelectionChanged();

            if (m_GroupTree != null)
            {
                m_GroupTree.ReloadTreeData();
            }

            if (m_GroupViews != null)
            {
                m_GroupViews.RecreateListControl();
            }

            if (m_SnapshotListView != null)
            {
                m_SnapshotListView.LoadFromBackend();
            }

            if (m_MixersTree != null)
            {
                m_MixersTree.ReloadTree();
            }

            AudioMixerUtility.RepaintAudioMixerAndInspectors();
        }