GetActiveQualityLevelsForPlatformCount(string)
[Editor Only] Obtains the number of Quality Levels that are selected for a given platform.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int GetActiveQualityLevelsForPlatformCount(string buildTargetGroupName)
Parameters
The platform to obtain the number of selected Quality Levels.
Returns
Type | Description |
|---|---|
| int | The total amount of Quality Levels active for the given platform. |
Remarks
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.