Method DisposeNativeArray
DisposeNativeArray<T>(NativeArray<T>, AllocatorHandle)
Dispose a NativeArray from an AllocatorHandle where it is allocated.
Declaration
public static void DisposeNativeArray<T>(NativeArray<T> nativeArray, AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
NativeArray<T> | nativeArray | The NativeArray to make a copy of. |
AllocatorManager.AllocatorHandle | allocator | The AllocatorHandle used to allocate the NativeArray. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements. |