# Write

> Writes the blob data to a path with serialized version.

## Definition

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

## Write\<T>(T, BlobBuilder, int)

Writes the blob data to a path with serialized version.

```csharp
public static void Write<U>(U writer, BlobBuilder builder, int version) where U : BinaryWriter
```

### Parameters

**** (T): The binary writer to write the blob with.**** (\[BlobBuilder]\(/engine/7000.0/script-reference/unity/entities/blobbuilder)): The BlobBuilder containing the blob to write.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Serialized version number of the blob data.

## Write(BlobBuilder, string, int)

Writes the blob data to a path with serialized version.

```csharp
public static void Write(BlobBuilder builder, string path, int version)
```

### Parameters

**** (\[BlobBuilder]\(/engine/7000.0/script-reference/unity/entities/blobbuilder)): The BlobBuilder containing the blob to write.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to write the blob data.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Serialized version number of the blob data.
