기술 자료

Unity Engine

Unity Engine

DisposeNativeArray<T>(NativeArray<T>, AllocatorHandle)

Dispose a NativeArray from an AllocatorHandle where it is allocated.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static void DisposeNativeArray<T>(NativeArray<T> nativeArray, AllocatorManager.AllocatorHandle allocator) where T : unmanaged

Parameters

nativeArray

The NativeArray to make a copy of.

The AllocatorHandle used to allocate the NativeArray.