---
title: AcquireReference<T>(UnityObjectRef<BlobObject>, 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/blobobjectextensions/acquirereference
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/blobobjectextensions/acquirereference.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:46:38.196Z
locale: en-us
---

# AcquireReference<T>(UnityObjectRef<BlobObject>, int)

> Acquires a reference to the blob data stored in the object that a UnityObjectRef points to.

## 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> AcquireReference<T>(this UnityObjectRef<BlobObject> objectRef, int version = 0) where T : unmanaged
```

### Parameters

**** (\[UnityObjectRef\<BlobObject>]\(/engine/7000.0/script-reference/unity/entities/unityobjectref1)): The reference to the object. If it is invalid, the returned reference is invalid.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The version of the layout of `T` that the stored data must have.

### 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 object is null, empty, or stores another version of the blob. |

### Remarks

Use this method when you hold the object as a `UnityObjectRef`, for example in an Entities component. It does the same as [BlobObject.AcquireReference](/engine/7000.0/script-reference/unityengine/blobobject/acquirereference.md), and returns an invalid reference if the object reference doesn't point to an object. Call this method from the main thread.
