Method GetTempArray
GetTempArray<T>(int)
Allocate a temporary typed array of a specific size. Unity releases the array at the end of the Render Pass.
Declaration
public T[] GetTempArray<T>(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size | Number of element in the array. |
Returns
| Type | Description |
|---|---|
| T[] | A new array of type T with size number of elements. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the array to be allocated. |