# GetCompatibleWithEditor

> Checks whether the plug-in is compatible with the Unity Editor.

## Definition

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

## GetCompatibleWithEditor()

Checks whether the plug-in is compatible with the Unity Editor.

```csharp
public bool GetCompatibleWithEditor()
```

### Returns

| Type                                                          | Description                                                          |
| ------------------------------------------------------------- | -------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the plug-in is compatible with the Editor. Otherwise, false. |

### Remarks

To check compatibility for a specific build target, use the overload that takes `buildTarget`.

## GetCompatibleWithEditor(string)

Checks whether the plug-in is compatible with the Unity Editor for a build target.

```csharp
public bool GetCompatibleWithEditor(string buildTarget)
```

### Parameters

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

### Returns

| Type                                                          | Description                                                                               |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the plug-in is compatible with the Editor for the build target. Otherwise, false. |

### Remarks

Use this overload when the plug-in's Editor compatibility depends on the active build target.

## GetCompatibleWithEditor(string, string)

Checks whether the plug-in is compatible with the Unity Editor for a build target group and build target.

```csharp
public bool GetCompatibleWithEditor(string buildTargetGroup, string buildTarget)
```

### Parameters

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

### Returns

| Type                                                          | Description                                                                                                      |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the plug-in is compatible with the Editor for the build target group and build target. Otherwise, false. |

### Remarks

Use this overload when the plug-in's Editor compatibility depends on the active build target group and build target.
