Method ToArrayNBC
ToArrayNBC<T>(NativeList<T>)
Returns a new managed array which is a copy of this list.
Declaration
[ExcludeFromBurstCompatTesting("Returns managed array")]
public static T[] ToArrayNBC<T>(this NativeList<T> list) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| NativeList<T> | list | The list to copy. |
Returns
| Type | Description |
|---|---|
| T[] | A new managed array which is a copy of this list. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements. |