Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ScheduleBatch(NativeArray<ClosestPointCommand>, NativeArray<Vector3>, int, JobHandle)

Schedule a batch of closest points which are performed in a job.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public static JobHandle ScheduleBatch(NativeArray<ClosestPointCommand> commands, NativeArray<Vector3> results, int minCommandsPerJob, JobHandle dependsOn = default)

Parameters

A NativeArray of the ClosestPointCommands to perform.

A NativeArray of the Vector3 where the results of the commands are stored.

minCommandsPerJob

The minimum number of jobs which should be performed in a single job.

dependsOn

A JobHandle of a job which must be completed before the closest point starts.

Returns

Type

Description

JobHandleThe JobHandle of the job that performs the closest point commands.