# BakingVersionAttribute

> Initializes and returns an instance of BakingVersionAttribute

## Definition

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

## BakingVersionAttribute(string, int)

Initializes and returns an instance of BakingVersionAttribute

```csharp
public BakingVersionAttribute(string userName, int version)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): An identifier for the user that made the last change. Use this to enforce a merge conflict when two different users both try to bump the version at the same time.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The version number of the converter. Increase this to invalidate the cached versions of entity scenes that use the converter that is tagged with this attribute.

## BakingVersionAttribute(bool)

Initializes and returns an instance of BakingVersionAttribute that is excluded from changing the Baking behaviour for an assembly.

```csharp
public BakingVersionAttribute(bool excluded)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether or not the Baker or Baking System is excluded from impacting the behaviour of the assembly. This means it does not contribute to an assembly causing re-bakes when changed, but also will not emit warnings if the assembly does use BakingVersion on other Bakers. With this constructor, only true is valid.
