Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Run<T>(T, int)

Performs the job's Execute method immediately on the main thread.
Read time 1 minuteLast updated 15 days ago

Definition

  • Type: Method
  • Namespace: Unity.Jobs
  • Assembly: UnityEngine.CoreModule
public static void Run<T>(this T jobData, int arrayLength) where T : struct, IJobFor

Parameters

jobData

T
The job and data to execute.

arrayLength

The number of iterations to execute the for loop over.

Remarks

Additional Resources: IJobFor.