Method CopyFromNBC
CopyFromNBC<T>(NativeList<T>, T[])
Clears this list and then copies all the elements of an array to this list.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed array")]
public static void CopyFromNBC<T>(this NativeList<T> list, T[] array) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| NativeList<T> | list | This list. |
| T[] | array | The managed array to copy from. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements. |