ToArray
Returns a new managed array with all the elements copied from a set.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.NotBurstCompatible
- Assembly: UnityEngine.ManagedKernelModule
ToArray<T>(NativeHashSet<T>)
Returns a new managed array with all the elements copied from a set.
[ExcludeFromBurstCompatTesting("Returns managed array")]public static T[] ToArray<T>(this NativeHashSet<T> set) where T : unmanaged, IEquatable<T>
Parameters
The set whose elements are copied to the array.
Returns
Type | Description |
|---|---|
| <T>[] | A new managed array with all the elements copied from a set. |
ToArray<T>(NativeParallelHashSet<T>)
Returns a new managed array with all the elements copied from a set.
[ExcludeFromBurstCompatTesting("Returns managed array")]public static T[] ToArray<T>(this NativeParallelHashSet<T> set) where T : unmanaged, IEquatable<T>
Parameters
The set whose elements are copied to the array.
Returns
Type | Description |
|---|---|
| <T>[] | A new managed array with all the elements copied from a set. |