# GetExcludeFromAnyPlatform

> Checks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.

## Definition

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

## GetExcludeFromAnyPlatform(string)

Checks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.

```csharp
public bool GetExcludeFromAnyPlatform(string platformName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the target platform.

### Returns

| Type                                                          | Description                                         |
| ------------------------------------------------------------- | --------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the platform is excluded. Otherwise, false. |

### Remarks

When **Any Platform** is enabled for a plug-in, it's compatible with every platform except the ones you exclude. To exclude a platform, use [PluginImporter.SetExcludeFromAnyPlatform](/engine/7000.0/script-reference/unityeditor/pluginimporter/setexcludefromanyplatform.md).

## GetExcludeFromAnyPlatform(BuildTarget)

Checks whether a build target is excluded when the plug-in is compatible with any platform.

```csharp
public bool GetExcludeFromAnyPlatform(BuildTarget platform)
```

### Parameters

**** (\[BuildTarget]\(/engine/7000.0/script-reference/unityeditor/buildtarget)): The target platform.

### Returns

| Type                                                          | Description                                         |
| ------------------------------------------------------------- | --------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the platform is excluded. Otherwise, false. |

### Remarks

When **Any Platform** is enabled for a plug-in, it's compatible with every platform except the ones you exclude. To exclude a platform, use [PluginImporter.SetExcludeFromAnyPlatform](/engine/7000.0/script-reference/unityeditor/pluginimporter/setexcludefromanyplatform.md).
