| commands | 要执行的 RaycastCommand 的 NativeArray。 |
| results | RaycastHit 的 NativeArray,其中存储命令的结果。 |
| minCommandsPerJob | The minimum number of commands to perform in a single job. |
| dependsOn | 必须在射线投射开始之前完成的作业的 JobHandle。 |
| maxHits | 射线可以命中的最大碰撞体数。 |
JobHandle 将执行射线投射的作业的 JobHandle。
Schedule a batch of raycasts to perform in a job.
| commands | 要执行的 RaycastCommand 的 NativeArray。 |
| results | RaycastHit 的 NativeArray,其中存储命令的结果。 |
| minCommandsPerJob | The minimum number of commands to perform in a single job. |
| dependsOn | 必须在射线投射开始之前完成的作业的 JobHandle。 |
JobHandle 将执行射线投射的作业的 JobHandle。
Schedule a batch of raycasts to perform in a job.
By default maxHits in this variant is set to 1.