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); } }
void LoadExpandedState() { int[] cachedExpandedState = SessionState.GetIntArray(GetUniqueAudioMixerName(m_Controller), null); if (cachedExpandedState != null) { m_AudioGroupTreeState.expandedIDs = new List <int>(cachedExpandedState); } else { // Expand whole tree. If no cached data then its the first time tree was loaded in this session m_AudioGroupTree.state.expandedIDs = new List <int>(); m_AudioGroupTree.data.SetExpandedWithChildren(m_AudioGroupTree.data.root, true); } }