SetChunkComponentData<T>(ref ComponentTypeHandle<T>, T)
Sets the value of a chunk component.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
SetChunkComponentData<T>(ComponentTypeHandle<T>, T)
public readonly void SetChunkComponentData<T>(ref ComponentTypeHandle<T> typeHandle, T value) where T : struct
Parameters
An object containing type and job safety information. To create this object, call ComponentSystemBase.GetComponentTypeHandle. Pass the object to a job using a public field you define as part of the job struct.
Remarks
Additional Resources: ArchetypeChunk.GetChunkComponentData