# GetActiveQualityLevelsForPlatformCount(string)

> [Editor Only] Obtains the number of Quality Levels that are selected for a given platform.

## Definition

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

```csharp
public static int GetActiveQualityLevelsForPlatformCount(string buildTargetGroupName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The platform to obtain the number of selected Quality Levels.

### Returns

| Type                                                       | Description                                                       |
| ---------------------------------------------------------- | ----------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The total amount of Quality Levels active for the given platform. |

### Remarks

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

Returns the count of quality levels that are including the given platform.
