CopyTo
Copies all the elements of a NativeSlice<T> to a NativeArray<T> or managed array of the same length.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
CopyTo(NativeArray<T>)
Copies all the elements of a NativeSlice<T> to a NativeArray<T> or managed array of the same length.
public void CopyTo(NativeArray<T> array)
Parameters
The array to copy elements to.
CopyTo(`0[])
Copies all the elements of a NativeSlice<T> to a NativeArray<T> or managed array of the same length.
public void CopyTo(T[] array)
Parameters
The array to copy elements to.