# IsPlatformIncluded(string, int)

> [Editor Only] Returns if the given platform is included by the Quality Level.

## Definition

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

```csharp
public static bool IsPlatformIncluded(string buildTargetGroupName, int index)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The platform name.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the Quality Level, must be positive and lower than the count of Quality Levels.

### Returns

| Type                                                          | Description                  |
| ------------------------------------------------------------- | ---------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | If the platform is included. |

### Examples

```csharp
public bool IsPlatformIcluded(BuildTarget platform, int index)
{
    var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform);
    var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup);
    return QualitySettings.IsPlatformIncluded(namedBuildTarget.TargetName, index);
}
```
