Documentation

Unity Engine


Unity Engine


RunByRef<T>(ref T, EntityQuery)

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, EntityQuery)

public static void RunByRef<T>(this ref T jobData, EntityQuery query) where T : struct, IJobChunk

Parameters

jobData

T
An IJobChunk 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.