private void LoadExpandedState() { int[] intArray = SessionState.GetIntArray(AudioMixerGroupTreeView.GetUniqueAudioMixerName(this.m_Controller), null); if (intArray != null) { this.m_AudioGroupTreeState.expandedIDs = new List <int>(intArray); } else { this.m_AudioGroupTree.state.expandedIDs = new List <int>(); this.m_AudioGroupTree.data.SetExpandedWithChildren(this.m_AudioGroupTree.data.root, true); } }
private void SaveExpandedState() { SessionState.SetIntArray(AudioMixerGroupTreeView.GetUniqueAudioMixerName(this.m_Controller), this.m_AudioGroupTreeState.expandedIDs.ToArray()); }