# Length

> The number of elements in the array.

## Definition

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

```csharp
public int Length { get; }
```

### Remarks

Unity assigns the length of the array when you call [BlobBuilder.CreateBlobAssetReference](/engine/7000.0/script-reference/unity/entities/blobbuilder/createblobassetreference.md), so until then this property returns 0. To get the number of elements before that point, use the [BlobBuilderArray\<T>.Length](/engine/7000.0/script-reference/unity/entities/blobbuilderarray1/length.md) property of the [BlobBuilderArray\<T>](/engine/7000.0/script-reference/unity/entities/blobbuilderarray1.md) that [BlobBuilder.Allocate](/engine/7000.0/script-reference/unity/entities/blobbuilder/allocate.md) returns.
