# TryInstantiateArray<TArray>(int, out TArray)

> Tries to create a new instance of an array with the given count.

## Definition

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

## TryInstantiateArray\<T>(int, T)

```csharp
public static bool TryInstantiateArray<TArray>(int count, out TArray instance)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The count the array should have.**** (T): When this method returns, contains the created instance, if type instantiation succeeded; otherwise, the default value for `TArray`.

### Returns

| Type                                                          | Description                                              |
| ------------------------------------------------------------- | -------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the type was instantiated; otherwise, `false`. |
