UnityEditor.SessionState.GetIntArray C# (CSharp) Method

GetIntArray() private method

private GetIntArray ( string key, int defaultValue ) : int[]
key string
defaultValue int
return int[]
        internal static extern int[] GetIntArray(string key, int[] defaultValue);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

 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);
     }
 }
All Usage Examples Of UnityEditor.SessionState::GetIntArray