Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

NativeArray<T0>.NativeArray<T0> Constructor

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.

Did you find this page useful? Please give it a rating: