# InstantiateWithCount(int)

> Implement this method to provide custom type instantiation with a count value for the container type.

## Definition

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

```csharp
protected virtual TList InstantiateWithCount(int count)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type | Description |
| ---- | ----------- |
| T    |             |

### Remarks

You MUST also override [InstantiationKind](/engine/6000.7/script-reference/unity/properties/instantiationkind.md) to return `ConstructionType.PropertyBagOverride` for this method to be called.
