ドキュメント

Unity Engine

Unity Engine

Execute(int, TransformAccess)

Performs work against a specific iteration index and transform.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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}