Execute(int, TransformAccess)
Performs work against a specific iteration index and transform.
Read time 1 minuteLast updated 12 days ago
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}