Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CopyTo

Copies all the elements to another NativeArray<T> or a managed array of the same length.
Read time 1 minuteLast updated 5 days ago

Definition

CopyTo(`0[])

Copies all the elements to another NativeArray<T> or a managed array of the same length.
public void CopyTo(T[] array)

Parameters

array

The array to copy elements to.

CopyTo(NativeArray<T>)

Copies all the elements to another NativeArray<T> or a managed array of the same length.
public void CopyTo(NativeArray<T> array)

Parameters

The array to copy elements to.