# SetCompatibleWithPlatform

> Sets compatibility with the specified platform.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## SetCompatibleWithPlatform(BuildTarget, bool)

Sets compatibility with the specified platform.

```csharp
public void SetCompatibleWithPlatform(BuildTarget platform, bool enable)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.5/script-reference/unityeditor/buildtarget)): Target platform.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Is plugin compatible with specified platform.

## SetCompatibleWithPlatform(string, bool)

Sets compatibility with the specified platform.

```csharp
public void SetCompatibleWithPlatform(string platformName, bool enable)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Target platform.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Is plugin compatible with specified platform.
