文档

Unity Engine

Unity Engine

RunByRef<T>(ref T, int)

Performs the job's Execute method immediately on the same thread by reference.
阅读时间1 分钟最后更新于 1 个月前

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, IJobParallelFor

Parameters

jobData

T
The job and data to execute.

arrayLength

The number of iterations to execute the for loop over.

Remarks

Additional Resources: IJobParallel.