# InstantiateArray

> Creates a new instance of an array with the given count.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## InstantiateArray\<T>(int)

Creates a new instance of an array with the given count.

```csharp
public static TArray InstantiateArray<TArray>(int count = 0)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The size of the array to instantiate.

### Returns

| Type | Description                    |
| ---- | ------------------------------ |
| T    | The array newly created array. |

## InstantiateArray\<T>(Type, int)

Creates a new instance of an array with the given type and given count.

```csharp
public static TArray InstantiateArray<TArray>(Type derivedType, int count = 0)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type we want to create a new instance of.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The size of the array to instantiate.

### Returns

| Type | Description                    |
| ---- | ------------------------------ |
| T    | The array newly created array. |
