---
title: ToBlobObjectReference<T>(BlobAssetReference<T>, int)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/blobassetreferenceextensions/toblobobjectreference
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/blobassetreferenceextensions/toblobobjectreference.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:09:23.021Z
locale: en-us
---

# ToBlobObjectReference<T>(BlobAssetReference<T>, int)

> Copies a blob asset into new blob data that a BlobObjectReference keeps alive.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static BlobObjectReference<T> ToBlobObjectReference<T>(this BlobAssetReference<T> blobAssetReference, int version = 0) where T : unmanaged
```

### Parameters

**** (\[BlobAssetReference\<T>]\(/engine/7000.0/script-reference/unity/entities/blobassetreference1)): The blob asset to copy.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The version of the layout of `T` to store with the copy. The default value is 0.

### Returns

| Type                                                                                           | Description                                                                                                                      |
| ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [BlobObjectReference\<T>](/engine/7000.0/script-reference/unityengine/blobobjectreference1.md) | The new reference. You must dispose it. The reference is invalid if the `IsCreated` property of `blobAssetReference` is `false`. |

### Remarks

The method copies the blob, so you can dispose `blobAssetReference` after the call. No object owns the copy: the returned reference, and the references that you [BlobObjectReference\<T>.Clone](/engine/7000.0/script-reference/unityengine/blobobjectreference1/clone.md) from it, keep it alive. The copy is freed when you dispose the last of them.

You can call this method from any thread.
