TransformAccessArray
TransformAccessArray.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Jobs
- Assembly: UnityEngine.CoreModule
- Implements: IDisposable
public struct TransformAccessArray : IDisposable
Constructors
Constructor | Description |
|---|---|
| TransformAccessArray(System.Int32,System.Int32) | Construct a TransformAccessArray with enough memory allocated to hold the specified number of transforms, and with initial length of 0. |
| TransformAccessArray(Unity.Collections.NativeArray{UnityEngine.TransformHandle},System.Int32) | Construct a TransformAccessArray from a NativeArray of Transformhandles. |
| TransformAccessArray(UnityEngine.Transform[],System.Int32) | Construct a TransformAccessArray from a managed array of Transform components. |
Properties
Property | Description |
|---|---|
| capacity | Returns array capacity. |
| isCreated | isCreated. |
| this[] | Array indexer. |
| length | Length. |
Methods
Method | Description |
|---|---|
| Add | Add Transform by instance ID to the end of the TransformAccessArray. |
| Dispose | Dispose. |
| GetTransformHandle | Get a TransformHandle for the transform at the specified index in the TransformAccessArray. |
| RemoveAtSwapBack | Removes an item at index. |
| SetTransformHandle | Set transform at the specified index from the TransformHandle provided. |
| SetTransformHandles | Replace entire contents of TransformAccessArray with provided transforms. |
| SetTransforms | Replace entire contents of TransformAccessArray with provided transforms. |
Static Methods
Method | Description |
|---|---|
| Allocate | Allocate. |