Unity - Scripting API: Jobs.TransformAccessArray.TransformAccessArray
TransformAccessArray Constructor
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public TransformAccessArray(int capacity, int desiredJobCount);
Parameters
| Parameter | Description |
|---|---|
| capacity | The initial capacity of the array, representing the number of transforms it can hold before needing to resize its internal storage. |
| desiredJobCount | Desired job count. |
Description
Construct a TransformAccessArray with enough memory allocated to hold the specified number of transforms, and with initial length of 0.
Declaration
public TransformAccessArray(Transform[] transforms, int desiredJobCount);
Parameters
| Parameter | Description |
|---|---|
| transforms | Array of Transform components to initially populate TransformAccessArray. |
| desiredJobCount | Desired job count. |
Description
Construct a TransformAccessArray from a managed array of Transform components.
Declaration
public TransformAccessArray(NativeArray<TransformHandle> transformHandles, int desiredJobCount);
Parameters
| Parameter | Description |
|---|---|
| transformHandles | NativeArray of TransformHandles to initially populate TransformAccessArray |
| desiredJobCount | Desired job count. |
Description
Construct a TransformAccessArray from a NativeArray of Transformhandles.