Documentation

Unity Engine

Download Unity

Unity Engine

Dispose<T>(NativeArray<T>)

Dispose a NativeArray from an AllocatorHandle where it is allocated.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static void Dispose<T>(NativeArray<T> nativeArray) where T : unmanaged

Parameters

nativeArray

The NativeArray to be disposed.