# Construct<T>(ref BlobArray<T>, params T[])

> Copies an array of structs to an array in a blob asset after allocating the necessary memory.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## Construct\<T>(BlobArray\<T>, \`\<>\[])

```csharp
public BlobBuilderArray<T> Construct<T>(ref BlobArray<T> blobArray, params T[] data) where T : struct
```

### Parameters

**** (\[BlobArray\<T>]\(/engine/7000.0/script-reference/unity/entities/blobarray1)): A reference to a BlobArray field in a blob asset.**** (\[\<T>\[]]\(./)): An array  containing structs of type `T`.

### Returns

| Type                                                                                        | Description                                                                        |
| ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [BlobBuilderArray\<T>](/engine/7000.0/script-reference/unity/entities/blobbuilderarray1.md) | A reference to the newly constructed array as a mutable BlobBuilderArray instance. |
