Method GetChunkComponentDataRW
GetChunkComponentDataRW<T>(ref ComponentTypeHandle<T>)
Gets a reference to the value of a chunk component for read-write access.
Declaration
public readonly ref T GetChunkComponentDataRW<T>(ref ComponentTypeHandle<T> typeHandle) where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| ComponentTypeHandle<T> | typeHandle | An object containing type and job safety information. To create this object, call GetComponentTypeHandle<T>(bool). Pass the object to a job using a public field you define as part of the job struct. |
Returns
| Type | Description |
|---|---|
| T | A reference to the chunk component value. |
Type Parameters
| Name | Description |
|---|---|
| T | The data type of the chunk component. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | If the provided type handle is read-only. |