Documentation

Unity Engine

Unity Engine

ToNativeArray(AllocatorHandle)

Copies the buffer into a new native array.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public NativeArray<T> ToNativeArray(AllocatorManager.AllocatorHandle allocator)

Parameters

The type of memory allocation to use when creating the native array.

Returns

Type

Description

NativeArray<T>A native array containing copies of the buffer elements.