Esempio n. 1
0
        public static (NativeArray <TKey>, int) GetUniqueKeyArray(ref UnsafeMultiHashMap <TKey, TValue> hashMap, Allocator allocator)
        {
            var withDuplicates = hashMap.GetKeyArray(allocator);

            withDuplicates.Sort();
            int uniques = withDuplicates.Unique();

            return(withDuplicates, uniques);
        }
Esempio n. 2
0
 public UnsafeMultiHashMapDebuggerTypeProxy(UnsafeMultiHashMap <TKey, TValue> target)
 {
     m_Target = target;
 }