Method SetChunkComponentData
SetChunkComponentData<T>(ComponentTypeHandle<T>, T)
Sets the value of a chunk component.
Declaration
public void SetChunkComponentData<T>(ComponentTypeHandle<T> chunkComponentTypeHandle, T value)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
ComponentTypeHandle<T> | chunkComponentTypeHandle | An object containing type and job safety information. Create this object by calling GetComponentTypeHandle<T>(Boolean) immediately before scheduling a job. Pass the object to a job using a public field you define as part of the job struct. |
T | value | A struct of type T containing the new values for the chunk component. |
Type Parameters
Name | Description |
---|---|
T | The data type of the chunk component. |