Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IJobParallelForTransformExtensions

Contains extension methods for IJobParallelForTransform.
Read time 1 minuteLast updated 13 days ago

Definition

public static class IJobParallelForTransformExtensions

Remarks

While IJobParallelForTransform.Execute defines how a job should process a single data element, the methods in this extension class actually add an instance of the job to the work queue. Use IJobParallelForTransformExtensions.ScheduleByRef to request asynchronous execution, or RunByRef to execute the job immediately on the main thread.
Additional Resources: IJobParallelForTransform.

Examples

{code Tests/EditModeAndPlayModeTests/Jobs/Assets/DocumentationExamples/TransformJobDocExamples.cs#ijobparallelfortransform-apidocs-example}

Static Methods

Method

Description

EarlyJobInitGathers and caches reflection data for the internal job system's managed bindings.
RunReadOnlyRuns an IJobParallelForTransform job immediately on the main thread, with read-only access to the transform data.
RunReadOnlyByRefRuns an IJobParallelForTransform job immediately on the main thread, with read-only access to the transform data.
ScheduleSchedules an IJobParallelForTransform job with read-write access to the transform data.
ScheduleByRefSchedules an IJobParallelForTransform job with read-write access to the transform data.
ScheduleReadOnlySchedules an IJobParallelForTransform job with read-only access to the transform data.
ScheduleReadOnlyByRefSchedules an IJobParallelForTransform job with read-only access to the transform data.