UnityEditor.TypeSelectionList.TypeSelectionList C# (CSharp) Method

TypeSelectionList() public method

public TypeSelectionList ( Object objects ) : System
objects Object
return System
        public TypeSelectionList(Object[] objects)
        {
            Dictionary<string, List<Object>> dictionary = new Dictionary<string, List<Object>>();
            foreach (Object obj2 in objects)
            {
                string typeName = ObjectNames.GetTypeName(obj2);
                if (!dictionary.ContainsKey(typeName))
                {
                    dictionary[typeName] = new List<Object>();
                }
                dictionary[typeName].Add(obj2);
            }
            this.m_TypeSelections = new List<TypeSelection>();
            foreach (KeyValuePair<string, List<Object>> pair in dictionary)
            {
                this.m_TypeSelections.Add(new TypeSelection(pair.Key, pair.Value.ToArray()));
            }
            this.m_TypeSelections.Sort();
        }
TypeSelectionList