---
title: SetUntypedBlobData(ReadOnlySpan<byte>, ulong, 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/unityengine/blobobject/setuntypedblobdata
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/blobobject/setuntypedblobdata.md
last_updated: 2026-11-07
generated_at: 2026-11-11T18:14:04.291Z
locale: en-us
---

# SetUntypedBlobData(ReadOnlySpan<byte>, ulong, int)

> Replaces the data stored in this object with a copy of the given data, type hash, and version.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetUntypedBlobData(ReadOnlySpan<byte> data, ulong typeHash, int version)
```

### Parameters

**** (\[ReadOnlySpan\<byte>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The data to copy. If it is empty, the object becomes empty.**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): The type hash of the data. Refer to [BlobObjectReference\<T>.TypeHash](/engine/7000.0/script-reference/unityengine/blobobjectreference1/typehash.md).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The version to store with the data. A typed access, such as [BlobObject.AcquireReference](/engine/7000.0/script-reference/unityengine/blobobject/acquirereference.md), succeeds only if you pass the same version.

### Remarks

`data` must be the root of a blob, without its header, as returned by [BlobObject.TryGetUntypedBlobData](/engine/7000.0/script-reference/unityengine/blobobject/trygetuntypedblobdata.md). References that you acquired earlier keep pointing to the previous data until you dispose them. Call this method from the main thread.
