buildTargetGroupName | The platform to obtain the number of selected Quality Levels. |
int The total amount of Quality Levels active for the given platform.
[Editor Only] Obtains the number of Quality Levels that are selected for a given platform.
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.