# GetActiveQualityLevelsForPlatform(string)

> [Editor Only] Obtains an array with the Quality Level indexes that are selected for the given platform.

## Definition

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

```csharp
public static int[] GetActiveQualityLevelsForPlatform(string buildTargetGroupName)
```

### Parameters

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

### Returns

| Type                                                           | Description                                                                        |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [int\[\]](https://learn.microsoft.com/dotnet/api/system.int32) | The array with the Quality Level indexes that are selected for the given platform. |

### Remarks

```csharp
public int[] GetActiveQualityLevelsForPlatform(BuildTarget platform)
{
    var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform);
    var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup);
    return QualitySettings.GetActiveQualityLevelsForPlatform(namedBuildTarget.TargetName);
}
```

Obtains the indexes that where a given platform is included.
