Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformAccessArray

Construct a TransformAccessArray from a managed array of Transform components.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine.Jobs
  • Assembly: UnityEngine.CoreModule

TransformAccessArray(Transform[], int)

Construct a TransformAccessArray from a managed array of Transform components.
public TransformAccessArray(Transform[] transforms, int desiredJobCount = -1)

Parameters

transforms

Array of Transform components to initially populate TransformAccessArray.

desiredJobCount

Desired job count.

TransformAccessArray(NativeArray<TransformHandle>, int)

Construct a TransformAccessArray from a NativeArray of Transformhandles.
public TransformAccessArray(NativeArray<TransformHandle> transformHandles, int desiredJobCount = -1)

Parameters

NativeArray of TransformHandles to initially populate TransformAccessArray

desiredJobCount

Desired job count.

TransformAccessArray(int, int)

Construct a TransformAccessArray with enough memory allocated to hold the specified number of transforms, and with initial length of 0.
public TransformAccessArray(int capacity, int desiredJobCount = -1)

Parameters

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.