기술 자료

Unity Engine

Unity Engine

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

Schedule a batch of closest points which are performed in a job.
읽는 시간 1분최근 업데이트: 한 달 전

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.