Execute(int, TransformAccess)
Performs work against a specific iteration index and transform.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Jobs
- Assembly: UnityEngine.CoreModule
void Execute(int index, TransformAccess transform)
Parameters
The index of the ParallelForTransform loop at which to perform work. This corresponds to the index of the transform in the job's input TransformAccessArray which should be processed by this call.
The position, rotation and scale of the transforms passed into the job.
Examples
{code Tests/EditModeAndPlayModeTests/Jobs/Assets/DocumentationExamples/TransformJobDocExamples.cs#ijobparallelfortransform-apidocs-example}