# UnityAPICompatibilityVersionAttribute

> Initializes a new instance of UnityAPICompatibilityVersionAttribute. This overload has been deprecated.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## UnityAPICompatibilityVersionAttribute(string)

Initializes a new instance of UnityAPICompatibilityVersionAttribute. This overload has been deprecated.

> **Warning:**
>
> **Removed.** This overload of the attribute has been deprecated. Use the constructor that takes the version and a boolean

```csharp
public UnityAPICompatibilityVersionAttribute(string version)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Unity version that this assembly is compatible with.

## UnityAPICompatibilityVersionAttribute(string, bool)

Initializes a new instance of UnityAPICompatibilityVersionAttribute.

```csharp
public UnityAPICompatibilityVersionAttribute(string version, bool checkOnlyUnityVersion)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Unity version that this assembly is compatible with.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Must be set to true.

### Remarks

Use this overload during the development cycle to avoid the AssemblyUpdater check that is performed on game code built outside of Unity and imported as assemblies. You can also avoid this check by passing disable-assembly-updater as a command line argument (see the Unity Manual for more details).

## UnityAPICompatibilityVersionAttribute(string, string\[])

Initializes a new instance of UnityAPICompatibilityVersionAttribute. This constructor is used by internal tooling.

```csharp
public UnityAPICompatibilityVersionAttribute(string version, string[] configurationAssembliesHashes)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Unity version that this assembly is compatible with.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): A comma-separated list comprised of the assembly name and attribute hash pairs. For example, assemblyname:hash,assemblyname:hash.
