Documentation

Unity Engine


Unity Engine


RunByRef

Runs the job immediately on the current thread.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

RunByRef<T>(T)

Runs the job immediately on the current thread.
public static void RunByRef<T>(this ref T jobData) where T : struct, IJobEntity

Parameters

jobData

T
An IJobEntity instance. In this variant, the jobData is passed by reference, which may be necessary for unusually large job structs.

RunByRef<T>(T, EntityQuery)

Runs the job immediately on the current thread.
public static void RunByRef<T>(this ref T jobData, EntityQuery query) where T : struct, IJobEntity

Parameters

jobData

T
An IJobEntity instance. In this variant, the jobData is passed by reference, which may be necessary for unusually large job structs.

The query selecting chunks with the necessary components.