NativeArray<T0>.Dispose

Declaration

public void Dispose();

Description

Disposes a NativeArray<T0>.

This methods disposes the memory owned by a NativeArray<T0>. The behavior of this methods depends on the Allocator used when the NativeArray was created.


Declaration

public Unity.Jobs.JobHandle Dispose(Unity.Jobs.JobHandle inputDeps);

Parameters

inputDeps The dependency of the new job.

Returns

JobHandle The JobHandle] of the new job. The job depends upon inputDeps and releases all resources (memory and safety handles) of the NativeArray<T0>.

Description

Creates and schedules a job that releases all resources (memory and safety handles) of a NativeArray<T0>.


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