RunByRef<T>(ref T, EntityQuery)
Runs the job immediately on the current thread.
阅读时间1 分钟最后更新于 20 天前
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
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.