Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RunByRef<T>(ref T, int)

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

Definition

  • Type: Method
  • Namespace: Unity.Jobs
  • Assembly: UnityEngine.CoreModule

RunByRef<T>(T, int)

public static void RunByRef<T>(this ref 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.