Version: 2018.2

NativeArray<T0>.NativeArray<T0>Constructor

Switch to Manual
public NativeArray<T0> (T[] array, Unity.Collections.Allocator allocator);
public NativeArray<T0> (NativeArray<T> array, Unity.Collections.Allocator allocator);

Parameters

lengthArray length.
allocatorAllocator.
clearMemoryShould clear memory?
arraySource array to copy elements from.

Description

Create NativeArray.