# CreateBlobAssetReference<T>(AllocatorHandle)

> Completes construction of the blob asset and returns a reference to the asset in unmanaged memory.

## Definition

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

```csharp
public BlobAssetReference<T> CreateBlobAssetReference<T>(AllocatorManager.AllocatorHandle allocator) where T : unmanaged
```

### Parameters

**** (\[AllocatorHandle]\(/engine/7000.0/script-reference/unity/collections/allocatormanager/allocatorhandle)): The type of memory to allocate. Unless the asset has a very short life span, use [Allocator.Persistent](/engine/7000.0/script-reference/unity/collections/allocator/persistent.md).

### Returns

| Type                                                                                            | Description                                                |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [BlobAssetReference\<T>](/engine/7000.0/script-reference/unity/entities/blobassetreference1.md) | Returns a reference to the blob asset in unmanaged memory. |

### Remarks

Use the [BlobAssetReference\<T>](/engine/7000.0/script-reference/unity/entities/blobassetreference1.md) to access the blob asset. When the asset is no longer needed, call[BlobAssetReference\<T>.Dispose](/engine/7000.0/script-reference/unity/entities/blobassetreference1/dispose.md) to destroy the blob asset and free its allocated memory.
