기술 자료

Unity Engine

Unity Engine

GetUniqueKeyArray

Returns an array populated with the unique keys from this multi hash map.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

GetUniqueKeyArray<T, U>(UnsafeParallelMultiHashMap<T, T>, AllocatorHandle)

Returns an array populated with the unique keys from this multi hash map.
public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this UnsafeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged

Parameters

The multi hash map.

The allocator to use.

Returns

Type

Description

ValueTuple<NativeArray<T>, int>An array populated with the unique keys from this multi hash map.

GetUniqueKeyArray<T, U>(NativeParallelMultiHashMap<T, T>, AllocatorHandle)

Returns an array populated with the unique keys from this multi hash map.
public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this NativeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged

Parameters

The multi hash map.

The allocator to use.

Returns

Type

Description

ValueTuple<NativeArray<T>, int>An array populated with the unique keys from this multi hash map.