Version: 2023.1
public static Unity.Jobs.JobHandle ScheduleBatch (NativeArray<CapsulecastCommand> commands, NativeArray<RaycastHit> results, int minCommandsPerJob, int maxHits, Unity.Jobs.JobHandle dependsOn);

参数

commands 要执行的 CapsulecastCommands 的 NaviveArray。
results 存储命令结果的 RaycastHit 的 NavtiveArray。
minCommandsPerJob The minimum number of commands to perform in a single job.
dependsOn 必须在执行胶囊体投射之前完成的作业的 jobHandle。
maxHits The maximum number of Colliders the CapsuleCast can hit.

返回

JobHandle 返回要执行胶囊体投射的作业的 JobHandle。

描述

Schedules a batch of capsule casts to perform in a job.


public static Unity.Jobs.JobHandle ScheduleBatch (NativeArray<CapsulecastCommand> commands, NativeArray<RaycastHit> results, int minCommandsPerJob, Unity.Jobs.JobHandle dependsOn);

参数

commands 要执行的 CapsulecastCommands 的 NaviveArray。
results 存储命令结果的 RaycastHit 的 NavtiveArray。
minCommandsPerJob The minimum number of commands to perform in a single job.
dependsOn 必须在执行胶囊体投射之前完成的作业的 jobHandle。

返回

JobHandle 返回要执行胶囊体投射的作业的 JobHandle。

描述

Schedules a batch of capsule casts to perform in a job.

By default maxHits in this variant is set to 1.