Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Execute(int, TransformAccess)

Performs work against a specific iteration index and transform.
Read time 1 minuteLast updated 12 days ago

Definition

void Execute(int index, TransformAccess transform)

Parameters

index

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}